From 8a54d8767e822626488cb0504567b565249ca3cf Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Thu, 20 Feb 2020 22:04:45 +0100 Subject: [PATCH] minor change of initialization for EM engine caves --- src/game_em/convert.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/game_em/convert.c b/src/game_em/convert.c index 0ae1f35b..0d94aa00 100644 --- a/src/game_em/convert.c +++ b/src/game_em/convert.c @@ -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; -- 2.34.1