Make the AI stopping a little less silly on zone shutdown

This commit is contained in:
Michael Cook (mackal) committed 2015-01-10 02:34:38 -05:00
1 parent 00ba6e761e
commit 5b78acc45e
3 files changed
+10 -9

No files matched your search

+7
View File
@@ -4668,3 +4668,10 @@ Mob *EntityList::GetTargetForVirus(Mob *spreader, int range)
return TargetsInRange[zone->random.Int(0, TargetsInRange.size() - 1)];
}
void EntityList::StopMobAI()
{
for (auto &mob : mob_list) {
mob.second->AI_Stop();
mob.second->AI_ShutDown();
}
}