mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 03:02:54 +00:00
for(var/bad_code in world)
Removes a very large amount of world loops. Adds a macro to painlessly generate a global list, and the needed code to modify the list when an object is made or deleted automatically. Cleans up some commented out code.
This commit is contained in:
@@ -35,7 +35,7 @@
|
||||
/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)
|
||||
for(var/obj/machinery/computer/power_monitor/PM in machines)
|
||||
if(PM.power_monitor)
|
||||
PM.power_monitor.refresh_sensors()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user