mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-28 01:04:50 +01:00
Introduce Config namespace and struct
This commit is contained in:
@@ -377,7 +377,7 @@ void ScreenshotGiant()
|
||||
{
|
||||
viewport.flags = vp->flags;
|
||||
}
|
||||
if (gConfigGeneral.TransparentScreenshot)
|
||||
if (Config::Get().general.TransparentScreenshot)
|
||||
{
|
||||
viewport.flags |= VIEWPORT_FLAG_TRANSPARENT_BACKGROUND;
|
||||
}
|
||||
@@ -445,7 +445,7 @@ static void ApplyOptions(const ScreenshotOptions* options, Viewport& viewport)
|
||||
CheatsSet(CheatType::RemoveLitter);
|
||||
}
|
||||
|
||||
if (options->transparent || gConfigGeneral.TransparentScreenshot)
|
||||
if (options->transparent || Config::Get().general.TransparentScreenshot)
|
||||
{
|
||||
viewport.flags |= VIEWPORT_FLAG_TRANSPARENT_BACKGROUND;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user