mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2024-12-23 11:50:04 +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);
|
||||
|
||||
// remove player's bullets
|
||||
MobManager::Bullets.erase(view.plr->iID);
|
||||
|
||||
// save player to DB
|
||||
Database::updatePlayer(view.plr);
|
||||
|
||||
@ -99,9 +102,6 @@ void PlayerManager::removePlayer(CNSocket* key) {
|
||||
it++;
|
||||
}
|
||||
|
||||
// remove player's bullets
|
||||
MobManager::Bullets.erase(view.plr->iID);
|
||||
|
||||
std::cout << players.size() << " players" << std::endl;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user