Prevent loops with del_on_death var for simple mobs

Same principle as the fix for DROPDEL
This commit is contained in:
oranges
2016-09-15 02:08:40 +00:00
parent 438b46cc17
commit 10d4ce619f
@@ -301,6 +301,9 @@
if(del_on_death)
ghostize()
stat = DEAD
//Prevent infinite loops if the mob Destroy() is overriden in such
//a manner as to cause a call to death() again
del_on_death = FALSE
qdel(src)
else
health = 0