minor change of initialization for EM engine caves
authorHolger Schemel <info@artsoft.org>
Thu, 20 Feb 2020 21:04:45 +0000 (22:04 +0100)
committerHolger Schemel <info@artsoft.org>
Tue, 19 May 2020 16:20:00 +0000 (18:20 +0200)
src/game_em/convert.c

index 0ae1f35bccf9338818bf47d1c62230ec56345e65..0d94aa00b6e65a1e74f164f6940db611fdad273c 100644 (file)
@@ -428,11 +428,16 @@ void prepare_em_level(void)
     ply[i].dynamite = 0;
     ply[i].dynamite_cnt = 0;
     ply[i].keys = 0;
-    ply[i].anim = 0;
-    ply[i].prev_x = ply[i].x = cav.player_x[i] + lev.left;
-    ply[i].prev_y = ply[i].y = cav.player_y[i] + lev.top;
+    ply[i].anim = PLY_still;
+    ply[i].x = cav.player_x[i] + lev.left;
+    ply[i].y = cav.player_y[i] + lev.top;
+    ply[i].prev_x = ply[i].x;
+    ply[i].prev_y = ply[i].y;
     ply[i].last_move_dir = MV_NONE;
-    ply[i].joy_n = ply[i].joy_e = ply[i].joy_s = ply[i].joy_w = 0;
+    ply[i].joy_n = 0;
+    ply[i].joy_e = 0;
+    ply[i].joy_s = 0;
+    ply[i].joy_w = 0;
     ply[i].joy_snap = 0;
     ply[i].joy_drop = 0;
     ply[i].joy_stick = 0;