mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-24 08:12:53 +01:00
Merge pull request #1883 from Gymnasiast/fix-1870
Check if the game is in title sequence mode before loading it, fixes #1870
This commit is contained in:
15
src/title.c
15
src/title.c
@@ -716,8 +716,11 @@ bool title_refresh_sequence()
|
||||
_scriptWaitCounter = 0;
|
||||
gTitleScriptCommand = -1;
|
||||
gTitleScriptSave = 0xFF;
|
||||
title_update_showcase();
|
||||
gfx_invalidate_screen();
|
||||
|
||||
if (RCT2_GLOBAL(RCT2_ADDRESS_SCREEN_FLAGS, uint8) == SCREEN_FLAGS_TITLE_DEMO) {
|
||||
title_update_showcase();
|
||||
gfx_invalidate_screen();
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -735,8 +738,12 @@ bool title_refresh_sequence()
|
||||
gCurrentPreviewTitleSequence = 0;
|
||||
window_invalidate_by_class(WC_OPTIONS);
|
||||
window_invalidate_by_class(WC_TITLE_EDITOR);
|
||||
title_update_showcase();
|
||||
gfx_invalidate_screen();
|
||||
|
||||
if (RCT2_GLOBAL(RCT2_ADDRESS_SCREEN_FLAGS, uint8) == SCREEN_FLAGS_TITLE_DEMO) {
|
||||
title_update_showcase();
|
||||
gfx_invalidate_screen();
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user