From da4b12681cd1b5fa18af7e0eebed99a0b13c1423 Mon Sep 17 00:00:00 2001 From: NovaBot <154629622+NovaBot13@users.noreply.github.com> Date: Wed, 10 Apr 2024 17:27:56 -0400 Subject: [PATCH] [MIRROR] Fixes spurious runtime on Icemoon caused by turf calling unimplemented LateInitialize() (#1898) * Fixes spurious runtime on Icemoon caused by turf calling unimplemented LateInitialize() (#82572) ## About The Pull Request As of https://github.com/tgstation/tgstation/pull/82540 this runtime was happening, ![image](https://github.com/tgstation/tgstation/assets/13398309/4d838fda-c157-4e33-ae64-77eafca1806f) `/turf/open/openspace/icemoon/` can be changed to `/turf/open/misc/asteroid/snow/icemoon/do_not_chasm` before `Initialize()` returns, which resulted in it `INITIALIZE_HINT_LATELOAD` getting returned on a turf that does not have an implementation of that proc. This should fix that. ## Why It's Good For The Game Fixes CI error * Fixes spurious runtime on Icemoon caused by turf calling unimplemented LateInitialize() --------- Co-authored-by: Bloop <13398309+vinylspiders@users.noreply.github.com> --- code/game/turfs/open/openspace.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/game/turfs/open/openspace.dm b/code/game/turfs/open/openspace.dm index 24345611576..eb05f233102 100644 --- a/code/game/turfs/open/openspace.dm +++ b/code/game/turfs/open/openspace.dm @@ -189,6 +189,8 @@ return if(T.turf_flags & NO_RUINS && protect_ruin) ChangeTurf(replacement_turf, null, CHANGETURF_IGNORE_AIR) + if(!isopenspaceturf(replacement_turf)) // only openspace turfs should be returning INITIALIZE_HINT_LATELOAD + return INITIALIZE_HINT_NORMAL return if(!ismineralturf(T) || !drill_below) return