Fixes Issue 697

Alright, added in list stuff to the alien's New() to handle it, and while I was at it I reworked add_to_mob_list() to actually be useful and used that in some places instead (It just takes into account everything for the lists, so that should be a bit more robust.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4203 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
sieve32@gmail.com
2012-07-28 18:33:31 +00:00
parent 082c7a13ce
commit 096a419443
9 changed files with 15 additions and 10 deletions
+8
View File
@@ -79,6 +79,10 @@ proc/rebuild_mob_lists()
proc/add_to_mob_list(var/mob/A)//Adds an individual mob
if(A)
mob_list |= A
if(A.stat == 2)
dead_mob_list |= A
if(A.stat != 2)
living_mob_list |= A
if(A.client)
player_list |= A
if(A.client.holder)
@@ -86,6 +90,10 @@ proc/add_to_mob_list(var/mob/A)//Adds an individual mob
proc/remove_from_mob_list(var/mob/R)//Removes an individual mob
mob_list -= R
if(R.stat == 2)
dead_mob_list -= R
if(R.stat != 2)
living_mob_list -= R
if(R.client)
player_list -= R
if(R.client.holder)