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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user