From ca7c087d48edda16b8ec08c751854dcb7fd55f21 Mon Sep 17 00:00:00 2001 From: Kyle Spier-Swenson Date: Fri, 13 Nov 2015 02:32:28 -0800 Subject: [PATCH 1/2] Fixes map loader incorrectly detecting x size in maps --- code/modules/awaymissions/maploader/reader.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/modules/awaymissions/maploader/reader.dm b/code/modules/awaymissions/maploader/reader.dm index db3470e3c82..0ab8d025efd 100644 --- a/code/modules/awaymissions/maploader/reader.dm +++ b/code/modules/awaymissions/maploader/reader.dm @@ -64,7 +64,7 @@ var/global/dmm_suite/preloader/_preloader = null var/z_depth = length(zgrid) //if exceeding the world max x or y, increase it - var/x_depth = length(copytext(zgrid,1,findtext(zgrid,"\n",2,0))) + var/x_depth = length(copytext(zgrid,1,findtext(zgrid,"\n",2,0)))/key_len if(world.maxx Date: Fri, 13 Nov 2015 10:22:52 -0800 Subject: [PATCH 2/2] fucking Lummox JR's map loader treating chars and tiles as one --- code/modules/awaymissions/maploader/reader.dm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/code/modules/awaymissions/maploader/reader.dm b/code/modules/awaymissions/maploader/reader.dm index 0ab8d025efd..0cf8d828170 100644 --- a/code/modules/awaymissions/maploader/reader.dm +++ b/code/modules/awaymissions/maploader/reader.dm @@ -64,9 +64,10 @@ var/global/dmm_suite/preloader/_preloader = null var/z_depth = length(zgrid) //if exceeding the world max x or y, increase it - var/x_depth = length(copytext(zgrid,1,findtext(zgrid,"\n",2,0)))/key_len - if(world.maxx