From 4f08247e5aa192fe015cbb424aeea2a97a69a223 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Sun, 4 Feb 2018 23:17:04 +0100 Subject: [PATCH] fixed bug with overwriting version-specific engine value with default value - setting an EM/EMC engine value depending on program version was added to fix existing tapes that were broken by adding the single-button handling, but that value was then always overwritten with the same default value - tapes created before 4.0.1.0 and broken due to this bug should work again --- src/game_em/convert.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/game_em/convert.c b/src/game_em/convert.c index 086bc7a3..3cad1078 100644 --- a/src/game_em/convert.c +++ b/src/game_em/convert.c @@ -1107,11 +1107,14 @@ void prepare_em_level(void) ply[i].joy_stick = ply[i].joy_spin = 0; } + // the following engine variables are initialized to version-specific values + // in function InitGameEngine() (src/game.c): + // + // - game_em.use_single_button (default: TRUE) + game_em.any_player_moving = FALSE; game_em.any_player_snapping = FALSE; - game_em.use_single_button = TRUE; - game_em.last_moving_player = 0; /* default: first player */ for (i = 0; i < MAX_PLAYERS; i++) -- 2.34.1