1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-10 09:32:29 +01:00

Close #19596: Disable replay effects with a startup flag (#22303)

This commit is contained in:
Andrew
2024-07-25 16:29:01 -04:00
committed by GitHub
parent 30a555d3c2
commit df07d9cb2b
6 changed files with 17 additions and 3 deletions

View File

@@ -184,7 +184,10 @@ namespace OpenRCT2
#ifndef DISABLE_NETWORK
// If the network is disabled we will only get a dummy hash which will cause
// false positives during replay.
CheckState();
if (!gSilentReplays)
{
CheckState();
}
#endif
ReplayCommands();
@@ -870,7 +873,7 @@ namespace OpenRCT2
}
// Focus camera on event.
if (isPositionValid && !result.Position.IsNull())
if (!gSilentReplays && isPositionValid && !result.Position.IsNull())
{
auto* mainWindow = WindowGetMain();
if (mainWindow != nullptr)