Merge pull request #9070 from ZehMatt/fix-9068

Fix #9068: Unable to place staff or peeps during multiplayer
This commit is contained in:
Duncan 2019-04-09 20:05:21 +01:00 committed by GitHub
commit e01b5f908a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 1 deletions

View File

@ -1934,7 +1934,13 @@ void Network::ProcessPlayerInfo()
auto* player = GetPlayerByID(it->second.Id);
if (player != nullptr)
{
*player = it->second;
const NetworkPlayer& networkedInfo = it->second;
player->Flags = networkedInfo.Flags;
player->Group = networkedInfo.Group;
player->LastAction = networkedInfo.LastAction;
player->LastActionCoord = networkedInfo.LastActionCoord;
player->MoneySpent = networkedInfo.MoneySpent;
player->CommandsRan = networkedInfo.CommandsRan;
}
}
_pendingPlayerInfo.erase(gCurrentTicks);