projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a116c31
)
added skipping screen fading when restarting game using BD engine
author
Holger Schemel
<holger.schemel@virtion.de>
Sun, 5 Jan 2025 16:05:45 +0000
(17:05 +0100)
committer
Holger Schemel
<holger.schemel@virtion.de>
Sun, 5 Jan 2025 16:05:50 +0000
(17:05 +0100)
src/game.c
patch
|
blob
|
history
diff --git
a/src/game.c
b/src/game.c
index 52ef60bda301c4d5225697825dbf96f42b6bd353..adb0d905d9c7e12b829b365dbf8fcbf2220c9145 100644
(file)
--- a/
src/game.c
+++ b/
src/game.c
@@
-3766,7
+3766,16
@@
void InitGame(void)
// when using BD engine, cover screen before fading out when restarting game
if (level.game_engine_type == GAME_ENGINE_TYPE_BD)
+ {
game_bd.cover_screen = TRUE;
+
+ // skip fading when covering screen, but only if not also skipping BD style uncovering
+ if (!setup.bd_skip_uncovering)
+ {
+ FadeSkipNextFadeOut();
+ FadeSkipNextFadeIn();
+ }
+ }
}
else
{