[refactor] Split MobManager.cpp into MobAI.cpp and Combat.cpp

This is terrible. It was a mistake to do this before cleaning up the
actual code. It might be better not to use this commit and to do this
refactor in a different order or something.
This commit is contained in:
2021-03-13 23:55:16 +01:00
parent ae279100d7
commit 2024fb4969
16 changed files with 1315 additions and 1297 deletions

View File

@@ -8,7 +8,7 @@
#include "ChatManager.hpp"
#include "Database.hpp"
#include "BuddyManager.hpp"
#include "MobManager.hpp"
#include "Combat.hpp"
#include "RacingManager.hpp"
#include "BuiltinCommands.hpp"
#include "Abilities.hpp"
@@ -59,7 +59,7 @@ void PlayerManager::removePlayer(CNSocket* key) {
GroupManager::groupKickPlayer(plr);
// remove player's bullets
MobManager::Bullets.erase(plr->iID);
Combat::Bullets.erase(plr->iID);
// remove player's ongoing race, if it exists
RacingManager::EPRaces.erase(key);