From: Holger Schemel Date: Sat, 28 Sep 2024 11:17:15 +0000 (+0200) Subject: changed not allowing negative number of gems in non-BD engines X-Git-Tag: 4.4.0.0-test-4~187 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=e5b068f094637bc4ee79b99266a9da7ce2413632;p=rocksndiamonds.git changed not allowing negative number of gems in non-BD engines --- 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;