Turrets are once again smart enough to stop firing at someone that has teleported out of their protected area. Bloody ConstantA missing that part during his optimization of the turret code.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@2435 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
n3ophyt3
2011-10-27 16:40:27 +00:00
parent db76ca237e
commit fd18afec67

View File

@@ -118,6 +118,9 @@
/obj/machinery/turret/proc/check_target(var/atom/movable/T as mob|obj)
if(T && T in protected_area.turretTargets)
if(!T in protected_area)
protected_area.Exited(T)
return 0 //If the guy is somehow not in the turret's area (teleportation), get them out the damn list. --NEO
if(istype(T, /mob/living/carbon))
var/mob/living/carbon/MC = T
if(!MC.stat)