From: Holger Schemel Date: Sun, 4 Feb 2018 22:17:04 +0000 (+0100) Subject: fixed bug with overwriting version-specific engine value with default value X-Git-Tag: 4.0.1.2~8 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=4f08247e5aa192fe015cbb424aeea2a97a69a223;p=rocksndiamonds.git 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 --- 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++)