From 2e683c718463a8bdaa202af607e4032e5892dde6 Mon Sep 17 00:00:00 2001 From: Leshana Date: Sun, 4 Mar 2018 12:34:55 -0500 Subject: [PATCH] Fixes to runtime map loader - Fix: Do not actually expand world.maxz when measureOnly = true - Fix: Support var values of "list()" (no contents) --- code/modules/maps/tg/reader.dm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/modules/maps/tg/reader.dm b/code/modules/maps/tg/reader.dm index fa730f574a..1ba29fa183 100644 --- a/code/modules/maps/tg/reader.dm +++ b/code/modules/maps/tg/reader.dm @@ -96,7 +96,7 @@ var/global/use_preloader = FALSE var/zcrd = text2num(dmmRegex.group[5]) + z_offset - 1 var/zexpansion = zcrd > world.maxz - if(zexpansion) + if(zexpansion && !measureOnly) if(cropMap) continue else @@ -385,6 +385,8 @@ var/global/use_preloader = FALSE /dmm_suite/proc/readlist(text as text, delimiter=",", keys_only_string = FALSE) var/list/to_return = list() + if(text == "") + return to_return // Fast bail-out var/position var/old_position = 1