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
No known key found for this signature in database
GPG Key ID: 6D4C24A61C93E208
1 changed files with 2 additions and 2 deletions

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;