mirror of https://github.com/OpenRCT2/OpenRCT2.git
Merge pull request #9070 from ZehMatt/fix-9068
Fix #9068: Unable to place staff or peeps during multiplayer
This commit is contained in:
commit
e01b5f908a
|
@ -1934,7 +1934,13 @@ void Network::ProcessPlayerInfo()
|
||||||
auto* player = GetPlayerByID(it->second.Id);
|
auto* player = GetPlayerByID(it->second.Id);
|
||||||
if (player != nullptr)
|
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);
|
_pendingPlayerInfo.erase(gCurrentTicks);
|
||||||
|
|
Loading…
Reference in New Issue