From e5b068f094637bc4ee79b99266a9da7ce2413632 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Sat, 28 Sep 2024 13:17:15 +0200 Subject: [PATCH] changed not allowing negative number of gems in non-BD engines --- src/game.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/game.c b/src/game.c index d6f1927e..a9e5ae96 100644 --- a/src/game.c +++ b/src/game.c @@ -4002,6 +4002,11 @@ void InitGame(void) // special case: set custom artwork setting to initial value game.use_masked_elements = game.use_masked_elements_initial; + // negative number of gems only supported in BD engine + if (level.game_engine_type != GAME_ENGINE_TYPE_BD) + if (game.gems_still_needed < 0) + game.gems_still_needed = 0; + for (i = 0; i < NUM_BELTS; i++) { game.belt_dir[i] = MV_NONE; -- 2.34.1