demonstar55's entity list changes (slightly modified) and a crash fix for the #repop command used in rapid succession.

This commit is contained in:
SecretsOTheP
2014-02-10 10:39:12 -05:00
parent 75663774fe
commit f074ead7f6
13 changed files with 2226 additions and 2945 deletions
+2 -2
View File
@@ -353,7 +353,7 @@ NPC::NPC(const NPCType* d, Spawn2* in_respawn, float x, float y, float z, float
NPC::~NPC()
{
entity_list.RemoveNPC(GetID());
//entity_list.RemoveNPC(GetID());
AI_Stop();
if(proximity != nullptr) {
@@ -362,7 +362,7 @@ NPC::~NPC()
}
//clear our spawn limit record if we had one.
entity_list.LimitRemoveNPC(this);
//entity_list.LimitRemoveNPC(this);
safe_delete(NPCTypedata_ours);