major cleanup of preprocessor hell
[rocksndiamonds.git] / src / game_sp / BugsTerminals.c
index 9dc2c5576eb3e1dde483a673032eed5791391294..afa7345e8bf40d7a843b5df8cdbf18667cecdd3f 100644 (file)
@@ -5,7 +5,8 @@
 #include "BugsTerminals.h"
 
 
-byte *TerminalState;
+byte TerminalState[SP_MAX_PLAYFIELD_SIZE + SP_HEADER_SIZE];
+
 int TerminalMaxCycles;
 
 
@@ -122,7 +123,7 @@ void subAnimateTerminals(int si)
 
 void subRandomize()
 {
-  long Tick = MyGetTickCount();
+  int Tick = MyGetTickCount();
 
   RandomSeed = (Tick ^ (Tick >> 16)) & 0xFFFF;
 }