1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-27 08:45:00 +01:00

Fix #21208: Error messages disappear too quickly if the game runs for a while (#21394)

* Reset gCurrentRealTimeTicks when the map is initialized

* Use 32 bit for gWindowUpdateTicks

* Update changelog.txt
This commit is contained in:
Matt
2024-02-13 21:03:30 +02:00
committed by GitHub
parent 5ac347e9f6
commit 19be093569
4 changed files with 4 additions and 2 deletions

View File

@@ -542,6 +542,7 @@ void GameLoadInit()
ContextBroadcastIntent(&intent);
gWindowUpdateTicks = 0;
gCurrentRealTimeTicks = 0;
LoadPalette();

View File

@@ -49,7 +49,7 @@ int32_t gTextBoxFrameNo = 0;
bool gUsingWidgetTextBox = false;
TextInputSession* gTextInput;
uint16_t gWindowUpdateTicks;
uint32_t gWindowUpdateTicks;
uint16_t gWindowMapFlashingFlags;
colour_t gCurrentWindowColours[4];

View File

@@ -480,7 +480,7 @@ using close_callback = void (*)();
extern WindowBase* gWindowAudioExclusive;
extern uint16_t gWindowUpdateTicks;
extern uint32_t gWindowUpdateTicks;
namespace MapFlashingFlags
{
constexpr uint16_t GuestListOpen = (1 << 0);