VS: Polaris already has this, I need it now though

This commit is contained in:
Arokha Sieyes
2018-01-27 14:10:51 -05:00
parent 1910940c43
commit 19b2d5a338
+4 -1
View File
@@ -155,7 +155,10 @@ var/global/list/tele_landmarks = list() // Terrible, but the alternative is loop
var/safety = 100 // Infinite loop protection.
while(!T && safety)
var/turf/simulated/candidate = pick(planet.planet_floors)
if(!istype(candidate) || istype(candidate, /turf/simulated/sky) || !T.outdoors)
if(!istype(candidate) || istype(candidate, /turf/simulated/sky))
safety--
continue
else if(candidate && !candidate.outdoors)
safety--
continue
else