From 4ecc38d301b990aa245a5e93adf1fcef8c9fd615 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Fri, 16 Mar 2018 16:26:59 +0100 Subject: [PATCH] fixed bug with playing "timeout" and "player dies" sounds in SP engine - this bug occurred when playing a level using SP engine and time limit - the Supaplex game engine does not support levels with time limit - bug fixed by always setting level time to zero when using SP engine --- src/game.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/game.c b/src/game.c index e159b96e..13f264e8 100644 --- a/src/game.c +++ b/src/game.c @@ -3060,6 +3060,11 @@ static void InitGameEngine() strEqual(setup.engine_snapshot_mode, STR_SNAPSHOT_MODE_EVERY_COLLECT) ? SNAPSHOT_MODE_EVERY_COLLECT : SNAPSHOT_MODE_OFF); game.snapshot.save_snapshot = FALSE; + + /* ---------- initialize level time for Supaplex engine ------------------- */ + /* Supaplex levels with time limit currently unsupported -- should be added */ + if (level.game_engine_type == GAME_ENGINE_TYPE_SP) + level.time = 0; } int get_num_special_action(int element, int action_first, int action_last) -- 2.34.1