Prevent replay manager from recording nested commands.

This commit is contained in:
Matt 2018-12-15 13:22:05 +01:00
parent bf03de4755
commit b0ca9ff7c5
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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)