rnd-20051215-1-src
[rocksndiamonds.git] / src / game_em / input.c
index 62b25f550034231bc1962eef11b26ffdf16cdd62..7418f0b6a55547757d60334fb3a3089733dbd348 100644 (file)
@@ -8,7 +8,7 @@
 #include "level.h"
 
 
-unsigned long Random;
+unsigned long RandomEM;
 
 struct PLAYER ply1;
 struct PLAYER ply2;
@@ -29,7 +29,7 @@ void game_init_vars(void)
 {
   int x, y;
 
-  Random = 1684108901;
+  RandomEM = 1684108901;
 
   for (y = 0; y < HEIGHT; y++)
     for (x = 0; x < WIDTH; x++)
@@ -85,7 +85,7 @@ void GameActions_EM(byte action)
 
   game_animscreen();
 
-  Random = Random * 129 + 1;
+  RandomEM = RandomEM * 129 + 1;
 
   frame = (frame - 1) & 7;
 
@@ -107,6 +107,19 @@ void GameActions_EM(byte action)
     if (game_frame_delay_value > 0)    /* do not redraw values in warp mode */
       DrawGameDoorValues_EM();
   }
+
+#if 0
+  if (lev.time_initial == 0)
+    lev.time++;
+  else if (lev.time > 0)
+    lev.time--;
+#endif
+
+#if 0
+  if (lev.time_initial > 0 &&
+      lev.time > 0 && lev.time <= 50 && lev.time % 5 == 0 && setup.time_limit)
+    play_sound(-1, -1, SAMPLE_time);
+#endif
 }