mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2024-11-26 06:50:06 +00:00
moved bullets removal call
This commit is contained in:
parent
d17890af68
commit
c77f99e849
@ -70,6 +70,9 @@ void PlayerManager::removePlayer(CNSocket* key) {
|
|||||||
|
|
||||||
GroupManager::groupKickPlayer(view.plr);
|
GroupManager::groupKickPlayer(view.plr);
|
||||||
|
|
||||||
|
// remove player's bullets
|
||||||
|
MobManager::Bullets.erase(view.plr->iID);
|
||||||
|
|
||||||
// save player to DB
|
// save player to DB
|
||||||
Database::updatePlayer(view.plr);
|
Database::updatePlayer(view.plr);
|
||||||
|
|
||||||
@ -99,9 +102,6 @@ void PlayerManager::removePlayer(CNSocket* key) {
|
|||||||
it++;
|
it++;
|
||||||
}
|
}
|
||||||
|
|
||||||
// remove player's bullets
|
|
||||||
MobManager::Bullets.erase(view.plr->iID);
|
|
||||||
|
|
||||||
std::cout << players.size() << " players" << std::endl;
|
std::cout << players.size() << " players" << std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user