projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9331b7b
)
changed not allowing negative number of gems in non-BD engines
author
Holger Schemel
<holger.schemel@virtion.de>
Sat, 28 Sep 2024 11:17:15 +0000
(13:17 +0200)
committer
Holger Schemel
<holger.schemel@virtion.de>
Sat, 28 Sep 2024 11:17:20 +0000
(13:17 +0200)
src/game.c
patch
|
blob
|
history
diff --git
a/src/game.c
b/src/game.c
index d6f1927ee0b54b34f31f55522a52e2295c00f5ee..a9e5ae96a9439c7d2a92532f08a80df274cc3c13 100644
(file)
--- 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;