Prevents the maploader from resetting when another map is

loaded at the same time
This commit is contained in:
Crazylemon64
2016-07-07 00:33:17 -07:00
parent 15faa42e4b
commit 12ce9a5647
+11 -2
View File
@@ -41,8 +41,11 @@ var/global/dmm_suite/preloader/_preloader = new
var/list/grid_models = list()
var/key_len = 0
dmmRegex.next = 1
while(dmmRegex.Find(tfile, dmmRegex.next))
var/dmm_suite/loaded_map/LM = new
LM.index = 1
while(dmmRegex.Find(tfile, LM.index))
LM.index = dmmRegex.next
// "aa" = (/type{vars=blah})
if(dmmRegex.group[1]) // Model
@@ -131,6 +134,8 @@ var/global/dmm_suite/preloader/_preloader = new
CHECK_TICK
qdel(LM)
if(bounds[1] == 1.#INF) // Shouldn't need to check every item
return null
else
@@ -395,6 +400,10 @@ var/global/dmm_suite/preloader/_preloader = new
what.vars[attribute] = value
use_preloader = FALSE
/dmm_suite/loaded_map
parent_type = /datum
var/index = 1 // To store the state of the regex
/area/template_noop
name = "Area Passthrough"