Small fixes for camera lights

This commit is contained in:
Kelenius
2014-07-18 02:44:26 +04:00
parent b938ad2dde
commit b67a751d57
2 changed files with 8 additions and 2 deletions
+1 -2
View File
@@ -18,7 +18,6 @@
var/invuln = null
var/obj/item/device/camera_bug/bug = null
var/obj/item/weapon/camera_assembly/assembly = null
var/light_on = 0
//OTHER
@@ -339,4 +338,4 @@
return 0
return 1
busy = 0
return 0
return 0
+7
View File
@@ -427,6 +427,8 @@ var/list/ai_list = list()
updatehealth()
/mob/living/silicon/ai/reset_view(atom/A)
if (camera_light_on)
light_cameras()
if(istype(A,/obj/machinery/camera))
current = A
..()
@@ -638,6 +640,11 @@ var/list/ai_list = list()
if (!camera_light_on)
src << "Camera lights deactivated."
for (var/obj/machinery/camera/C in lit_cameras)
C.SetLuminosity(0)
lit_cameras = list()
return
light_cameras()