mirror of https://github.com/OpenRCT2/OpenRCT2.git
Prevent replay manager from recording nested commands.
This commit is contained in:
parent
bf03de4755
commit
b0ca9ff7c5
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue