Merge pull request #3859 from Citadel-Station-13/upstream-merge-32503

[MIRROR] Fixes power_change being called on un-initialized machines
This commit is contained in:
LetterJay
2017-11-09 03:18:42 -06:00
committed by GitHub

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 ..()