Merge pull request #3110 from CHOMPStationBot/upstream-merge-11639

[MIRROR] [MIRROR] Kills Doorstop
This commit is contained in:
Nadyr
2021-10-27 18:40:19 -04:00
committed by GitHub
+4 -9
View File
@@ -219,14 +219,9 @@ var/list/all_maps = list()
// Get a list of 'nearby' or 'connected' zlevels.
// You should at least return a list with the given z if nothing else.
/datum/map/proc/get_map_levels(var/srcz, var/long_range = FALSE, var/om_range = -1)
//Overmap behavior
if(use_overmap)
//Get what sector we're in
var/obj/effect/overmap/visitable/O = get_overmap_sector(srcz)
if(!istype(O))
//Not in a sector, just the passed zlevel
return list(srcz)
//Get what sector we're in
var/obj/effect/overmap/visitable/O = get_overmap_sector(srcz)
if(istype(O))
//Just the sector we're in
if(om_range == -1)
return O.map_z.Copy()
@@ -239,7 +234,7 @@ var/list/all_maps = list()
connections += V.map_z // Adding list to list adds contents
return connections
//Traditional behavior
//Traditional behavior, if not in an overmap sector
else
//If long range, and they're at least in contact levels, return contact levels.
if (long_range && (srcz in contact_levels))