fixes power_change being called on un-initialized machines (#32503)

This commit is contained in:
Emmett Gaines
2017-11-08 19:16:57 -05:00
committed by CitadelStationBot
parent ea44e4a1d9
commit f1cbf4e0a3

View File

@@ -120,8 +120,6 @@ GLOBAL_LIST_EMPTY(teleportlocs)
. = ..()
power_change() // all machines set to current power level, also updates icon
blend_mode = BLEND_MULTIPLY // Putting this in the constructor so that it stops the icons being screwed up in the map editor.
if(!IS_DYNAMIC_LIGHTING(src))
@@ -143,6 +141,11 @@ GLOBAL_LIST_EMPTY(teleportlocs)
areas_in_z["[z]"] = list()
areas_in_z["[z]"] += src
return INITIALIZE_HINT_LATELOAD
/area/LateInitialize()
power_change() // all machines set to current power level, also updates icon
/area/Destroy()
STOP_PROCESSING(SSobj, src)
return ..()