Uses the proper list for xeno landmarks/nightmare spawning (#31470)

This commit is contained in:
KorPhaeron
2017-10-09 15:59:06 -05:00
committed by CitadelStationBot
parent 6f2b89ae88
commit e7800a2235

View File

@@ -19,12 +19,11 @@
player_mind.active = TRUE player_mind.active = TRUE
var/list/spawn_locs = list() var/list/spawn_locs = list()
for(var/obj/effect/landmark/xeno_spawn/L in GLOB.landmarks_list) for(var/X in GLOB.xeno_spawn)
if(isturf(L.loc)) var/turf/T = X
var/turf/T = L.loc var/light_amount = T.get_lumcount()
var/light_amount = T.get_lumcount() if(light_amount < SHADOW_SPECIES_LIGHT_THRESHOLD)
if(light_amount < SHADOW_SPECIES_LIGHT_THRESHOLD) spawn_locs += T
spawn_locs += T
if(!spawn_locs.len) if(!spawn_locs.len)
message_admins("No valid spawn locations found, aborting...") message_admins("No valid spawn locations found, aborting...")