From 81433c485961ade551e6c57ff54e9d20825dd40d Mon Sep 17 00:00:00 2001 From: Cyberboss Date: Tue, 7 Mar 2017 15:14:49 -0500 Subject: [PATCH] Removes an unused variable (#24749) --- code/_globalvars/misc.dm | 15 +-------------- code/controllers/subsystem/garbage.dm | 1 - code/world.dm | 1 - 3 files changed, 1 insertion(+), 16 deletions(-) diff --git a/code/_globalvars/misc.dm b/code/_globalvars/misc.dm index 47795f76f61c..c46157af71a7 100644 --- a/code/_globalvars/misc.dm +++ b/code/_globalvars/misc.dm @@ -6,17 +6,4 @@ var/timezoneOffset = 0 // The difference betwen midnight (of the host computer) // However it'd be ok to use for accessing attack logs and such too, which are even laggier. var/fileaccess_timer = 0 -var/TAB = "    " - - - -var/map_ready = 0 -/* - basically, this will be used to avoid initialize() being called twice for objects - initialize() is necessary because the map is instanced on a turf-by-turf basis - i.e. all obj on a turf are instanced, then all mobs on that turf, before moving to the next turf (starting bottom-left) - This means if we want to say, get any neighbouring objects in New(), only objects to the south and west will exist yet. - Therefore, we'd need to use spawn inside New() to wait for the surrounding turf contents to be instanced - However, using lots of spawn has a severe performance impact, and often results in spaghetti-code - map_ready will be set to 1 when world/New() is called (which happens just after the map is instanced) -*/ \ No newline at end of file +var/TAB = "    " \ No newline at end of file diff --git a/code/controllers/subsystem/garbage.dm b/code/controllers/subsystem/garbage.dm index 8ddfbc08472c..dbffc10d26c7 100644 --- a/code/controllers/subsystem/garbage.dm +++ b/code/controllers/subsystem/garbage.dm @@ -473,7 +473,6 @@ var/datum/subsystem/garbage_collector/SSgarbage SearchVar(timezoneOffset) SearchVar(fileaccess_timer) SearchVar(TAB) - SearchVar(map_ready) SearchVar(data_core) SearchVar(CELLRATE) SearchVar(CHARGELEVEL) diff --git a/code/world.dm b/code/world.dm index 4072ec08c1b6..cf0e259472bd 100644 --- a/code/world.dm +++ b/code/world.dm @@ -15,7 +15,6 @@ /world/New() log_world("World loaded at [world.timeofday]") - map_ready = 1 #if (PRELOAD_RSC == 0) external_rsc_urls = file2list("config/external_rsc_urls.txt","\n")