set the sub areas fire var before the fire alarms update their icons.

This commit is contained in:
Ghommie
2019-12-12 23:16:06 +01:00
parent 651370c5b4
commit e1998e1bab
+3 -3
View File
@@ -355,6 +355,9 @@ GLOBAL_LIST_EMPTY(teleportlocs)
/area/proc/set_fire_alarm_effects(boolean)
fire = boolean
for(var/i in sub_areas)
var/area/A = i
A.fire = boolean
mouse_opacity = MOUSE_OPACITY_TRANSPARENT
for(var/alarm in firealarms)
var/obj/machinery/firealarm/F = alarm
@@ -362,9 +365,6 @@ GLOBAL_LIST_EMPTY(teleportlocs)
F.update_icon()
for(var/obj/machinery/light/L in get_sub_areas_contents(src))
L.update()
for(var/i in sub_areas)
var/area/A = i
A.fire = boolean
/area/proc/updateicon()
var/weather_icon