Skip to content

Commit

Permalink
Merge pull request #9070 from ZehMatt/fix-9068
Browse files Browse the repository at this point in the history
Fix #9068: Unable to place staff or peeps during multiplayer
  • Loading branch information
duncanspumpkin committed Apr 9, 2019
2 parents 198194f + 7c901ad commit e01b5f9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/openrct2/network/Network.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e01b5f9

Please sign in to comment.