1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-25 15:54:31 +01:00

Fix screen location on resize/alt+tab

This commit is contained in:
Jonathan Haas
2015-11-05 10:16:13 +01:00
parent 36b8c1ce98
commit 3be79fd738

View File

@@ -250,9 +250,11 @@ static void title_set_location(int x, int y)
*/
void title_fix_location()
{
rct_xy16 position = _titleScriptCurrentCentralPosition;
if (position.x != -1) {
title_set_location(position.x, position.y);
if (RCT2_GLOBAL(RCT2_ADDRESS_SCREEN_FLAGS, uint8) == SCREEN_FLAGS_TITLE_DEMO) {
rct_xy16 position = _titleScriptCurrentCentralPosition;
if (position.x != -1) {
title_set_location(position.x, position.y);
}
}
}