rnd-20060319-2-src
[rocksndiamonds.git] / src / game_em / synchro_3.c
index bc171a8372eb5e87011911f69e00b2de12b78cf0..bafc581f8f458d5174084b7bd7f0423f1b43a31c 100644 (file)
@@ -5,17 +5,15 @@
  * this should be spread over the frames for reduced cpu load.
  */
 
-#include "tile.h"
-#include "level.h"
-#include "sample.h"
+#include "main_em.h"
 
 
 void synchro_3(void)
 {
-  register unsigned int x;
-  register unsigned int y;
-  register unsigned int count;
-  register unsigned long random;
+  int x;
+  int y;
+  int count;
+  unsigned long random;
 
   /* update variables */
 
@@ -63,7 +61,7 @@ void synchro_3(void)
 
   /* grow amoeba */
 
-  random = Random;
+  random = RandomEM;
 
   for (count = lev.amoeba_time; count--;)
   {
@@ -89,7 +87,7 @@ void synchro_3(void)
     random = random * 129 + 1;
   }
 
-  Random = random;
+  RandomEM = random;
 
   /* handle explosions */