updated various names of EM engine specific definitions
[rocksndiamonds.git] / src / game_em / input.c
index b8e2e663b1f5f96df79356adc6dea8b8220ba33e..e3e17cb80150b4ea2e1026ab4da5830ec9885669 100644 (file)
@@ -32,13 +32,13 @@ void game_init_vars(void)
 
   for (y = 0; y < HEIGHT; y++)
     for (x = 0; x < WIDTH; x++)
-      Array[0][y][x] = ZBORDER;
+      Array[0][y][x] = Zborder;
   for (y = 0; y < HEIGHT; y++)
     for (x = 0; x < WIDTH; x++)
-      Array[1][y][x] = ZBORDER;
+      Array[1][y][x] = Zborder;
   for (y = 0; y < HEIGHT; y++)
     for (x = 0; x < WIDTH; x++)
-      Array[2][y][x] = ZBORDER;
+      Array[2][y][x] = Zborder;
   for (y = 0; y < HEIGHT; y++)
     for (x = 0; x < WIDTH; x++)
       Array[3][y][x] = Xblank;
@@ -58,7 +58,7 @@ void game_init_vars(void)
   Boom = Index[3];
 }
 
-void InitGameEngine_EM()
+void InitGameEngine_EM(void)
 {
   prepare_em_level();
 
@@ -67,7 +67,7 @@ void InitGameEngine_EM()
   RedrawPlayfield_EM(FALSE);
 }
 
-void UpdateGameDoorValues_EM()
+static void UpdateGameDoorValues_EM(void)
 {
 }
 
@@ -94,7 +94,6 @@ void GameActions_EM(byte action[MAX_PLAYERS], boolean warp_mode)
   if (frame == 6)
   {
     synchro_3();
-    sound_play();
 
     UpdateGameDoorValues_EM();
   }
@@ -161,9 +160,13 @@ void readjoy(byte action, struct PLAYER *ply)
       !ply->joy_s &&
       !ply->joy_w)
     ply->joy_snap = snap;
+
+  /* use bug with snap key (mainly TAS keys) sometimes moving the player */
+  if (game_em.use_snap_key_bug)
+    ply->joy_snap = snap;
 }
 
-void SaveEngineSnapshotValues_EM()
+void SaveEngineSnapshotValues_EM(void)
 {
   int i, j, k;
 
@@ -190,7 +193,7 @@ void SaveEngineSnapshotValues_EM()
        engine_snapshot_em.Array[i][j][k] = Array[i][j][k];
 }
 
-void LoadEngineSnapshotValues_EM()
+void LoadEngineSnapshotValues_EM(void)
 {
   int i, j, k;