added setting increased BD cave time also in main game engine 4.4.0.0-test-4
authorHolger Schemel <holger.schemel@virtion.de>
Sun, 1 Dec 2024 15:35:18 +0000 (16:35 +0100)
committerHolger Schemel <holger.schemel@virtion.de>
Sun, 1 Dec 2024 15:58:14 +0000 (16:58 +0100)
commit9eb7bd6f7b3b3cba5cf8156606ec7cdb113d36e5
tree2d1e86800c4d8054444f419c9e00b3f8190812eb
parentdaf84901d01bf1cf96623f2486272b4dd45759ff
added setting increased BD cave time also in main game engine

This change is required if the BD cave time was increased by
collecting clocks; else the game is running out of time too early in
the main game engine, which still uses the previous level time, even
though the BD cave time is displayed correctly in the game panel.

However, a decreased BD cave time (for example, if a voodoo doll was
destroyed) may not be set in the main engine, as it may result in an
immediate "out of time" event, which is handled separately in the main
game engine.
src/game.c
src/game_bd/bd_caveengine.c
src/game_bd/export_bd.h
src/game_bd/import_bd.h
src/game_bd/main_bd.c