mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-01-08 00:12:25 +00:00
Merge pull request #7592 from mwerezak/power-sensor
Fixes power console warning icon not updating
This commit is contained in:
@@ -159,12 +159,12 @@
|
||||
icon_state = "power"
|
||||
|
||||
/obj/machinery/computer/power_monitor/proc/check_warnings()
|
||||
var/warn = 0
|
||||
if(grid_sensors)
|
||||
for(var/obj/machinery/power/sensor/S in grid_sensors)
|
||||
for(var/name_tag in grid_sensors)
|
||||
var/obj/machinery/power/sensor/S = grid_sensors[name_tag]
|
||||
if(S.check_grid_warning())
|
||||
warn = 1
|
||||
return warn
|
||||
return 1
|
||||
return 0
|
||||
|
||||
|
||||
/obj/machinery/computer/power_monitor/power_change()
|
||||
|
||||
Reference in New Issue
Block a user