mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2025-12-23 12:20:05 +00:00
[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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user