mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-23 17:07:17 +00:00
[Cleanup] Cleanup magic numbers (#2662)
* [Cleanup] Cleanup magic numbers * renamed RACE_NODE
This commit is contained in:
1 parent
ed6194ad19
commit
900e1aecf6
6 files changed
+43
-27
No files matched your search
+3
-2
@@ -5833,9 +5833,10 @@ void EntityList::DespawnGridNodes(int32 grid_id) {
|
||||
Mob *mob = m.second;
|
||||
if (
|
||||
mob->IsNPC() &&
|
||||
mob->GetRace() == 2254 &&
|
||||
mob->GetRace() == RACE_NODE_2254 &&
|
||||
mob->EntityVariableExists("grid_id") &&
|
||||
std::stoi(mob->GetEntityVariable("grid_id")) == grid_id) {
|
||||
std::stoi(mob->GetEntityVariable("grid_id")) == grid_id)
|
||||
{
|
||||
mob->Depop();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user