mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-15 18:14:22 +01:00
Fix APC constantly clicking during a grid check (#68835)
* apc update change * apcs should probably force update
This commit is contained in:
committed by
GitHub
parent
daf3e74dd9
commit
f9a2dd01dd
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user