Fixes map loader incorrectly detecting x size in maps

This commit is contained in:
Kyle Spier-Swenson
2015-11-13 02:32:28 -08:00
parent 67ae63161f
commit ca7c087d48
@@ -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<x_depth)
world.maxx=x_depth
@@ -338,4 +338,4 @@ var/global/dmm_suite/preloader/_preloader = null
/dmm_suite/preloader/proc/load(atom/what)
for(var/attribute in attributes)
what.vars[attribute] = attributes[attribute]
qdel(src)
qdel(src)