mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-08-29 08:09:34 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user