mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-22 14:24:33 +01:00
Prevent replay manager from recording nested commands.
This commit is contained in:
@@ -496,7 +496,7 @@ int32_t game_do_command_p(
|
||||
else if (replayManager->IsNormalising() && commandExecutes && (flags & GAME_COMMAND_FLAG_REPLAY) != 0)
|
||||
recordCommand = true;
|
||||
|
||||
if (recordCommand)
|
||||
if (recordCommand && gGameCommandNestLevel == 1)
|
||||
{
|
||||
int32_t callback = game_command_callback_get_index(game_command_callback);
|
||||
|
||||
|
||||
@@ -744,7 +744,7 @@ namespace OpenRCT2
|
||||
}
|
||||
|
||||
// Focus camera on event.
|
||||
if (isPositionValid && gCommandPosition.x != 0x8000)
|
||||
if (isPositionValid && static_cast<uint16_t>(gCommandPosition.x) != 0x8000)
|
||||
{
|
||||
auto* mainWindow = window_get_main();
|
||||
if (mainWindow != nullptr)
|
||||
|
||||
Reference in New Issue
Block a user