mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-31 12:32:28 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user