From 81cdedea5d9446b916f9adff129b461d8a53870d Mon Sep 17 00:00:00 2001 From: Tad Hardesty Date: Fri, 5 Jan 2018 03:56:55 -0800 Subject: [PATCH] Fix away missions taking 2+ minutes to load (#34084) --- code/modules/mapping/map_template.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/modules/mapping/map_template.dm b/code/modules/mapping/map_template.dm index 910cc6fe60..dc9bc93547 100644 --- a/code/modules/mapping/map_template.dm +++ b/code/modules/mapping/map_template.dm @@ -49,8 +49,8 @@ SSair.setup_template_machinery(atmos_machines) /datum/map_template/proc/load_new_z() - var/x = round(world.maxx/2) - var/y = round(world.maxy/2) + var/x = round((world.maxx - width)/2) + var/y = round((world.maxy - height)/2) var/list/bounds = maploader.load_map(file(mappath), x, y) if(!bounds)