Fixes unreachable landmarks breaking spacetravel

Adds a sanity check to prevent overmap spacetravel locking onto unreachable landmarks (such as other shuttles and such that are docked inside other landmarks and thus not on the overmap itself) and getting killed by a runtime.
This commit is contained in:
Verkister
2020-12-01 22:12:22 +02:00
committed by GitHub
parent 56c1b6db2d
commit fa5aa67610
+4
View File
@@ -83,6 +83,10 @@ proc/overmap_spacetravel(var/turf/space/T, var/atom/movable/A)
if (!M)
return
// Is the landmark still on the map.
if(!isturf(M.loc))
return
// Don't let AI eyes yeet themselves off the map
if(istype(A, /mob/observer/eye))
return