Merge pull request #4545 from Citadel-Station-13/upstream-merge-33849

[MIRROR] Fixes AI camera lights not updating when tracking mobs
This commit is contained in:
LetterJay
2017-12-27 03:02:11 -06:00
committed by GitHub
@@ -16,7 +16,6 @@
// It will also stream the chunk that the new loc is in.
/mob/camera/aiEye/proc/setLoc(T)
if(ai)
if(!isturf(ai.loc))
return
@@ -34,6 +33,8 @@
if(istype(ai.current, /obj/machinery/holopad))
var/obj/machinery/holopad/H = ai.current
H.move_hologram(ai, T)
if(ai.camera_light_on)
ai.light_cameras()
/mob/camera/aiEye/Move()
return 0
@@ -85,11 +86,6 @@
if(!user.tracking)
user.cameraFollow = null
//user.unset_machine() //Uncomment this if it causes problems.
//user.lightNearbyCamera()
if(user.camera_light_on)
user.light_cameras()
// Return to the Core.
/mob/living/silicon/ai/proc/view_core()