Optimizes restart

Cuts 7-8 seconds
This commit is contained in:
Kelenius
2016-03-16 14:49:37 +03:00
parent f5aaefbeec
commit 1afd4af7bb
2 changed files with 4 additions and 8 deletions

View File

@@ -68,13 +68,11 @@ var/global/list/map_count = list()
if(!do_not_announce) admin_notice("<span class='danger'>[capitalize(name)] failed to generate ([round(0.1*(world.timeofday-start_time),0.1)] seconds): could not produce sane map.</span>", R_DEBUG)
/datum/random_map/proc/get_map_cell(var/x,var/y)
if(!islist(map))
if(!map)
set_map_size()
var/cell = ((y-1)*limit_x)+x
if((cell < 1) || (cell > map.len))
. = ((y-1)*limit_x)+x
if((. < 1) || (. > map.len))
return null
else
return cell
/datum/random_map/proc/get_map_char(var/value)
switch(value)