shithub: rott

Download patch

ref: 025735945c30dd75aa8aae65b4e11d728ad0e4eb
parent: d47b25596139c9aa4571001653006c1b2f1845f0
author: Marc-Alexandre Espiaut <marcalexandre@member.fsf.org>
date: Tue Jun 5 08:14:10 EDT 2018

Removing obsolete *TEST code from rt_rand.c

--- a/rott/rt_rand.c
+++ b/rott/rt_rand.c
@@ -24,9 +24,6 @@
 #include "rt_util.h"
 #include <time.h>
 
-#if (DEVELOPMENT == 1)
-#include "rt_main.h"
-#endif
 //MED
 #include "memcheck.h"
 
@@ -89,21 +86,8 @@
 }
 
 
-#if (RANDOMTEST==1)
 //****************************************************************************
 //
-// int GameRNG ( char * string, int val )
-//
-//****************************************************************************
-int   GameRNG ( char * string, int val )
-{
-    rndindex = (rndindex+1)&(SIZE_OF_RANDOM_TABLE-1);
-    SoftError("RNG - num=%3d called from=%s val=%d\n",RandomTable[rndindex],string,val);
-    return RandomTable[rndindex];
-}
-#else
-//****************************************************************************
-//
 // int GameRNG (void)
 //
 //****************************************************************************
@@ -113,26 +97,11 @@
 
     return RandomTable[rndindex];
 }
-#endif
 
 
 
-#if (RANDOMTEST==1)
 //****************************************************************************
 //
-// int RNG ( char * string, int val )
-//
-//****************************************************************************
-
-int   RNG ( char * string, int val )
-{
-    sndindex = (sndindex+1)&(SIZE_OF_RANDOM_TABLE-1);
-//   SoftError("SRNG - num=%3ld called from=%s val=%ld\n",RandomTable[sndindex],string,val);
-    return RandomTable[sndindex];
-}
-#else
-//****************************************************************************
-//
 // int RNG (void)
 //
 //****************************************************************************
@@ -143,5 +112,4 @@
 
     return RandomTable[sndindex];
 }
-#endif