Fix APC constantly clicking during a grid check (#68835)

* apc update change

* apcs should probably force update
This commit is contained in:
distributivgesetz
2022-07-30 10:31:07 +02:00
committed by GitHub
parent daf3e74dd9
commit f9a2dd01dd
2 changed files with 4 additions and 3 deletions
+2 -3
View File
@@ -365,6 +365,7 @@
malfvacate()
if("reboot")
failure_timer = 0
force_update = FALSE
update_appearance()
update()
if("emergency_lighting")
@@ -384,8 +385,6 @@
if(!area || !area.requires_power)
return
if(failure_timer)
update()
queue_icon_update()
failure_timer--
force_update = TRUE
return
@@ -515,7 +514,7 @@
// update icon & area power if anything changed
if(last_lt != lighting || last_eq != equipment || last_en != environ || force_update)
force_update = 0
force_update = FALSE
queue_icon_update()
update()
else if(last_ch != charging)
+2
View File
@@ -121,6 +121,8 @@
return
failure_timer = max(failure_timer, round(duration))
update()
queue_icon_update()
/obj/machinery/power/apc/proc/set_nightshift(on)
set waitfor = FALSE