Speed up mapload significantly

Co-authored-by: Aronai Sieyes <arokha@arokha.com>
This commit is contained in:
ShadowLarkens
2020-03-19 00:29:24 -04:00
committed by Aronai Sieyes
co-authored by Aronai Sieyes
parent 9250685a06
commit 2e23dcdb49
33 changed files with 199 additions and 238 deletions
+2 -2
View File
@@ -65,11 +65,11 @@ In short:
for(var/datum/lighting_corner/L in world)
L.update_lumcount(1, 0, 0)
for(var/turf/space/T in turfs)
for(var/turf/space/T in world)
OnTurfChange(T)
/datum/universal_state/hell/proc/MiscSet()
for(var/turf/simulated/floor/T in turfs)
for(var/turf/simulated/floor/T in world)
if(!T.holy && prob(1))
new /obj/effect/gateway/active/cult(T)
@@ -14,8 +14,8 @@
var/next_check=0
var/list/avail_dirs = list(NORTH,SOUTH,EAST,WEST)
/turf/unsimulated/wall/supermatter/New()
..()
/turf/unsimulated/wall/supermatter/Initialize(mapload)
. = ..()
START_PROCESSING(SSturfs, src)
next_check = world.time+5 SECONDS
@@ -98,7 +98,7 @@ The access requirements on the Asteroid Shuttles' consoles have now been revoked
else
L.update_lumcount(0.0, 0.4, 1)
for(var/turf/space/T in turfs)
for(var/turf/space/T in world)
OnTurfChange(T)
/datum/universal_state/supermatter_cascade/proc/MiscSet()
+1 -1
View File
@@ -3,7 +3,7 @@
var/list/pick_turfs = list()
var/list/Z_choices = list()
Z_choices |= using_map.get_map_levels(1, FALSE)
for(var/turf/simulated/floor/T in turfs)
for(var/turf/simulated/floor/T in world)
if(T.z in Z_choices)
if(!T.block_tele)
pick_turfs += T