Fix splitscreen kart id checking
This commit is contained in:
parent
c16727302a
commit
582ec771c0
@ -573,10 +573,14 @@ void ServerLobby::asynchronousUpdate()
|
|||||||
std::shared_ptr<NetworkPlayerProfile>& player = players[i];
|
std::shared_ptr<NetworkPlayerProfile>& player = players[i];
|
||||||
std::shared_ptr<STKPeer> peer = player->getPeer();
|
std::shared_ptr<STKPeer> peer = player->getPeer();
|
||||||
if (peer)
|
if (peer)
|
||||||
{
|
|
||||||
peer->clearAvailableKartIDs();
|
peer->clearAvailableKartIDs();
|
||||||
|
}
|
||||||
|
for (unsigned i = 0; i < players.size(); i++)
|
||||||
|
{
|
||||||
|
std::shared_ptr<NetworkPlayerProfile>& player = players[i];
|
||||||
|
std::shared_ptr<STKPeer> peer = player->getPeer();
|
||||||
|
if (peer)
|
||||||
peer->addAvailableKartID(i);
|
peer->addAvailableKartID(i);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
float real_players_count = (float)players.size();
|
float real_players_count = (float)players.size();
|
||||||
getHitCaptureLimit(real_players_count);
|
getHitCaptureLimit(real_players_count);
|
||||||
|
Loading…
Reference in New Issue
Block a user