Fixes a few more runtimes.

This commit is contained in:
Heroman
2022-09-16 08:40:34 +10:00
parent 607d730743
commit 6b525c8c6c
3 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -465,7 +465,7 @@ var/list/mob/living/forced_ambiance_list = new
/area/proc/prison_break(break_lights = TRUE, open_doors = TRUE, open_blast_doors = TRUE)
var/obj/machinery/power/apc/theAPC = get_apc()
if(theAPC.operating)
if(theAPC && theAPC.operating)
if(break_lights)
for(var/obj/machinery/power/apc/temp_apc in src)
temp_apc.overload_lighting(70)
@@ -45,8 +45,9 @@
return
var/datum/sprite_accessory/tail/taur/TT = H.tail_style
item_state = "[icon_base]_[TT.icon_sprite_tag]" //icon_sprite_tag is something like "deer"
return 1
if(istype(TT))
item_state = "[icon_base]_[TT.icon_sprite_tag]" //icon_sprite_tag is something like "deer"
return 1
+1 -1
View File
@@ -64,7 +64,7 @@
var/obj/machinery/power/apc/theAPC = null
for(var/area/A in areas)
theAPC = A.get_apc()
if(theAPC.operating) //If the apc's off, it's a little hard to overload the lights.
if(theAPC && theAPC.operating) //If the apc's off, it's a little hard to overload the lights.
for(var/obj/machinery/light/L in A)
L.flicker(10)