1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 11:03:00 +01:00

Don't apply viewport flags on title scene (#22670)

This commit is contained in:
Aaron van Geffen
2024-08-31 22:16:37 +02:00
committed by GitHub
parent c54e25c1d4
commit 032874c80d

View File

@@ -13,6 +13,7 @@
#include <openrct2-ui/interface/Widget.h>
#include <openrct2-ui/windows/Window.h>
#include <openrct2/Context.h>
#include <openrct2/OpenRCT2.h>
#include <openrct2/config/Config.h>
#include <openrct2/world/Footpath.h>
@@ -35,7 +36,7 @@ static Widget _mainWidgets[] = {
widgets = _mainWidgets;
ViewportCreate(this, windowPos, width, height, Focus(CoordsXYZ(0x0FFF, 0x0FFF, 0)));
if (viewport != nullptr)
if (viewport != nullptr && !(gScreenFlags & SCREEN_FLAGS_TITLE_DEMO))
{
SetViewportFlags();
viewport->rotation = 0;