mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2026-02-11 14:50:03 +00:00
Remove Eggs::Eggs and rearrange Entity members a bit
This commit is contained in:
@@ -10,7 +10,6 @@
|
||||
#include "Racing.hpp"
|
||||
#include "Vendor.hpp"
|
||||
#include "Abilities.hpp"
|
||||
#include "Eggs.hpp"
|
||||
|
||||
#include <cmath>
|
||||
#include <algorithm>
|
||||
@@ -62,10 +61,6 @@ void NPCManager::destroyNPC(int32_t id) {
|
||||
if (MobAI::Mobs.find(id) != MobAI::Mobs.end())
|
||||
MobAI::Mobs.erase(id);
|
||||
|
||||
// remove from eggs
|
||||
if (Eggs::Eggs.find(id) != Eggs::Eggs.end())
|
||||
Eggs::Eggs.erase(id);
|
||||
|
||||
// finally, remove it from the map and free it
|
||||
NPCs.erase(id);
|
||||
delete entity;
|
||||
|
||||
Reference in New Issue
Block a user