1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-24 00:03:11 +01:00

Fix #10489: Hosts last action not being synchronized

This commit is contained in:
Matt
2019-12-31 10:23:12 +01:00
parent 37110f386d
commit ef4a3d0528

View File

@@ -418,7 +418,7 @@ namespace GameActions
if (!(actionFlags & GA_FLAGS::CLIENT_ONLY) && result->Error == GA_ERROR::OK)
{
if (network_get_mode() == NETWORK_MODE_SERVER)
if (network_get_mode() != NETWORK_MODE_NONE)
{
NetworkPlayerId_t playerId = action->GetPlayer();
@@ -436,7 +436,7 @@ namespace GameActions
network_set_player_last_action_coord(playerId, result->Position);
}
}
else if (network_get_mode() == NETWORK_MODE_NONE)
else
{
bool commandExecutes = (flags & GAME_COMMAND_FLAG_GHOST) == 0 && (flags & GAME_COMMAND_FLAG_NO_SPEND) == 0;