mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 03:02:54 +00:00
Fixes to runtime map loader
- Fix: Do not actually expand world.maxz when measureOnly = true - Fix: Support var values of "list()" (no contents)
This commit is contained in:
@@ -96,7 +96,7 @@ var/global/use_preloader = FALSE
|
|||||||
var/zcrd = text2num(dmmRegex.group[5]) + z_offset - 1
|
var/zcrd = text2num(dmmRegex.group[5]) + z_offset - 1
|
||||||
|
|
||||||
var/zexpansion = zcrd > world.maxz
|
var/zexpansion = zcrd > world.maxz
|
||||||
if(zexpansion)
|
if(zexpansion && !measureOnly)
|
||||||
if(cropMap)
|
if(cropMap)
|
||||||
continue
|
continue
|
||||||
else
|
else
|
||||||
@@ -385,6 +385,8 @@ var/global/use_preloader = FALSE
|
|||||||
/dmm_suite/proc/readlist(text as text, delimiter=",", keys_only_string = FALSE)
|
/dmm_suite/proc/readlist(text as text, delimiter=",", keys_only_string = FALSE)
|
||||||
|
|
||||||
var/list/to_return = list()
|
var/list/to_return = list()
|
||||||
|
if(text == "")
|
||||||
|
return to_return // Fast bail-out
|
||||||
|
|
||||||
var/position
|
var/position
|
||||||
var/old_position = 1
|
var/old_position = 1
|
||||||
|
|||||||
Reference in New Issue
Block a user