mirror of https://github.com/OpenRCT2/OpenRCT2.git
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:
commit
e6f1b6cd38
|
@ -716,8 +716,11 @@ bool title_refresh_sequence()
|
|||
_scriptWaitCounter = 0;
|
||||
gTitleScriptCommand = -1;
|
||||
gTitleScriptSave = 0xFF;
|
||||
|
||||
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);
|
||||
|
||||
if (RCT2_GLOBAL(RCT2_ADDRESS_SCREEN_FLAGS, uint8) == SCREEN_FLAGS_TITLE_DEMO) {
|
||||
title_update_showcase();
|
||||
gfx_invalidate_screen();
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue