Properly mark player as kicked on client side.
This commit is contained in:
@@ -1167,7 +1167,9 @@ ClientThread::RemoveDisconnectedPlayers()
|
||||
if (tmpPlayer->getMyActiveStatus()) {
|
||||
// If a player is not in the player data list, it was disconnected.
|
||||
if (!GetPlayerDataByUniqueId(tmpPlayer->getMyUniqueID()).get()) {
|
||||
//tmpPlayer->setMyCash(0);
|
||||
if (tmpPlayer->isKicked()) {
|
||||
tmpPlayer->setMyCash(0);
|
||||
}
|
||||
tmpPlayer->setMyActiveStatus(false);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user