Merge pull request #4624 from Anewbe/skyfall

Falling from the sky should work again
This commit is contained in:
Neerti
2018-01-24 19:17:31 -05:00
committed by GitHub
+4 -1
View File
@@ -158,7 +158,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