Makes the map loader immune to sleeps in the shit it creates (#26219)

* Makes the map loader immune to sleeps in this shit it creates

* Fix mistake
This commit is contained in:
Kyle Spier-Swenson
2017-04-15 10:31:46 -07:00
committed by duncathan salt
parent 260cf251ba
commit a39ba1a230

View File

@@ -329,7 +329,7 @@ GLOBAL_DATUM_INIT(_preloader, /dmm_suite/preloader, new)
if(!no_changeturf && ispath(path, /turf))
. = crds.ChangeTurf(path, TRUE)
else
. = new path (crds)//first preloader pass
. = create_atom(path, crds)//first preloader pass
if(GLOB.use_preloader && .)//second preloader pass, for those atoms that don't ..() in New()
GLOB._preloader.load(.)
@@ -340,6 +340,10 @@ GLOBAL_DATUM_INIT(_preloader, /dmm_suite/preloader, new)
stoplag()
SSatoms.map_loader_begin()
/dmm_suite/proc/create_atom(path, crds)
set waitfor = FALSE
. = new path (crds)
//text trimming (both directions) helper proc
//optionally removes quotes before and after the text (for variable name)
/dmm_suite/proc/trim_text(what as text,trim_quotes=0)