1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-20 05:23:04 +01:00

Revert "Fix #22672: Loud sound effects on title screen"

This reverts commit 4d2efa0edc.
This commit is contained in:
Gymnasiast
2024-09-20 20:42:35 +02:00
parent 0431ef0987
commit fe6397c88c

View File

@@ -36,9 +36,9 @@ namespace OpenRCT2::Ui::Windows
widgets = _mainWidgets;
ViewportCreate(this, windowPos, width, height, Focus(CoordsXYZ(0x0FFF, 0x0FFF, 0)));
if (viewport != nullptr)
if (viewport != nullptr && !(gScreenFlags & SCREEN_FLAGS_TITLE_DEMO))
{
SetViewportFlags(gScreenFlags & SCREEN_FLAGS_TITLE_DEMO);
SetViewportFlags();
viewport->rotation = 0;
}
gShowGridLinesRefCount = 0;
@@ -53,14 +53,9 @@ namespace OpenRCT2::Ui::Windows
}
private:
void SetViewportFlags(bool isTitleWindow)
void SetViewportFlags()
{
viewport->flags |= VIEWPORT_FLAG_SOUND_ON;
if (isTitleWindow)
{
return;
}
if (Config::Get().general.InvisibleRides)
{
viewport->flags |= VIEWPORT_FLAG_INVISIBLE_RIDES;