Skip to content

Commit

Permalink
Makes camera alarms work properly on reactivation.
Browse files Browse the repository at this point in the history
  • Loading branch information
gcoremans committed Jun 11, 2015
1 parent 77334d7 commit 3a759c8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions code/game/machinery/camera/camera.dm
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@
cameranet.addCamera(src)
emped = 0 //Resets the consecutive EMP count
triggerCameraAlarm()
spawn(100)
cancelCameraAlarm()
for(var/mob/O in mob_list)
if (O.client && O.client.eye == src)
O.unset_machine()
Expand Down Expand Up @@ -249,7 +251,10 @@
add_hiddenprint(user)
else
visible_message("<span class='danger'>\The [src] reactivates!</span>")
triggerCameraAlarm()
icon_state = initial(icon_state)
spawn(100)
cancelCameraAlarm()
playsound(src.loc, 'sound/items/Wirecutter.ogg', 100, 1)

// now disconnect anyone using the camera
Expand Down

0 comments on commit 3a759c8

Please sign in to comment.