mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-10 15:00:25 +00:00
[Cleanup] Cleanup magic numbers (#2662)
* [Cleanup] Cleanup magic numbers * renamed RACE_NODE
This commit is contained in:
+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