From 19b2d5a338bb8795e227c106b4667ab3504fafa9 Mon Sep 17 00:00:00 2001 From: Arokha Sieyes Date: Thu, 25 Jan 2018 16:39:08 -0500 Subject: [PATCH] VS: Polaris already has this, I need it now though --- code/game/objects/effects/step_triggers.dm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/code/game/objects/effects/step_triggers.dm b/code/game/objects/effects/step_triggers.dm index 09c45051d7..49525fb249 100644 --- a/code/game/objects/effects/step_triggers.dm +++ b/code/game/objects/effects/step_triggers.dm @@ -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