Merge pull request #3253 from Citadel-Station-13/upstream-merge-31470

[MIRROR] Uses the proper list for xeno landmarks/nightmare spawning
This commit is contained in:
LetterJay
2017-10-09 23:01:59 -04:00
committed by GitHub
+5 -6
View File
@@ -19,12 +19,11 @@
player_mind.active = TRUE
var/list/spawn_locs = list()
for(var/obj/effect/landmark/xeno_spawn/L in GLOB.landmarks_list)
if(isturf(L.loc))
var/turf/T = L.loc
var/light_amount = T.get_lumcount()
if(light_amount < SHADOW_SPECIES_LIGHT_THRESHOLD)
spawn_locs += T
for(var/X in GLOB.xeno_spawn)
var/turf/T = X
var/light_amount = T.get_lumcount()
if(light_amount < SHADOW_SPECIES_LIGHT_THRESHOLD)
spawn_locs += T
if(!spawn_locs.len)
message_admins("No valid spawn locations found, aborting...")