mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-11 10:22:13 +00:00
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:
@@ -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 ..()
|
||||
|
||||
Reference in New Issue
Block a user