mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-14 11:42:27 +00:00
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:
committed by
duncathan salt
parent
260cf251ba
commit
a39ba1a230
@@ -329,7 +329,7 @@ GLOBAL_DATUM_INIT(_preloader, /dmm_suite/preloader, new)
|
|||||||
if(!no_changeturf && ispath(path, /turf))
|
if(!no_changeturf && ispath(path, /turf))
|
||||||
. = crds.ChangeTurf(path, TRUE)
|
. = crds.ChangeTurf(path, TRUE)
|
||||||
else
|
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()
|
if(GLOB.use_preloader && .)//second preloader pass, for those atoms that don't ..() in New()
|
||||||
GLOB._preloader.load(.)
|
GLOB._preloader.load(.)
|
||||||
@@ -340,6 +340,10 @@ GLOBAL_DATUM_INIT(_preloader, /dmm_suite/preloader, new)
|
|||||||
stoplag()
|
stoplag()
|
||||||
SSatoms.map_loader_begin()
|
SSatoms.map_loader_begin()
|
||||||
|
|
||||||
|
/dmm_suite/proc/create_atom(path, crds)
|
||||||
|
set waitfor = FALSE
|
||||||
|
. = new path (crds)
|
||||||
|
|
||||||
//text trimming (both directions) helper proc
|
//text trimming (both directions) helper proc
|
||||||
//optionally removes quotes before and after the text (for variable name)
|
//optionally removes quotes before and after the text (for variable name)
|
||||||
/dmm_suite/proc/trim_text(what as text,trim_quotes=0)
|
/dmm_suite/proc/trim_text(what as text,trim_quotes=0)
|
||||||
|
|||||||
Reference in New Issue
Block a user