1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-22 23:33:04 +01:00

Add GAME_COMMAND_FLAG_REPLAY

This commit is contained in:
Matt
2018-12-06 08:38:28 +01:00
parent 624427259b
commit 6e8216d7c7
2 changed files with 4 additions and 2 deletions

View File

@@ -428,7 +428,7 @@ namespace OpenRCT2
if (command.action != nullptr)
{
GameAction* action = command.action.get();
action->SetFlags(action->GetFlags());
action->SetFlags(action->GetFlags() | GAME_COMMAND_FLAG_REPLAY);
Guard::Assert(action != nullptr);
@@ -436,7 +436,8 @@ namespace OpenRCT2
}
else
{
game_do_command(command.eax, command.ebx, command.ecx, command.edx, command.esi, command.edi, command.ebp);
uint32_t flags = command.ebx | GAME_COMMAND_FLAG_REPLAY;
game_do_command(command.eax, flags, command.ecx, command.edx, command.esi, command.edi, command.ebp);
}
replayQueue.erase(replayQueue.begin());