Merge pull request #4620 from VOREStation/vplk-misc-fixes-2

Miscellaneous Small Fixes II
This commit is contained in:
Neerti
2018-01-24 12:32:18 -05:00
committed by GitHub
6 changed files with 13 additions and 8 deletions
@@ -32,6 +32,13 @@
/obj/machinery/power/sensor/proc/auto_set_name()
name = "[name_tag] - Powernet Sensor"
/obj/machinery/power/sensor/Destroy()
. = ..()
// TODO - Switch power_monitor to register deletion events instead of this.
for(var/obj/machinery/computer/power_monitor/PM in world)
if(PM.power_monitor)
PM.power_monitor.refresh_sensors()
// Proc: check_grid_warning()
// Parameters: None
// Description: Checks connected powernet for warnings. If warning is found returns 1