Fix runtime for escape pods

Fixes Runtime in escape_pods.dm,19
This commit is contained in:
Razgriz
2020-08-09 20:35:55 -07:00
committed by GitHub
parent 52d827823d
commit 7923c7112c

View File

@@ -42,7 +42,7 @@
if(moving_status == SHUTTLE_INTRANSIT)
return FALSE //already going somewhere, current_location may be an intransit location instead of in a sector
var/our_sector = waypoint_sector(current_location)
if(myship?.landmark && next_location == myship.landmark)
if(!our_sector && myship?.landmark && next_location == myship.landmark)
return TRUE //We're not on the overmap yet (admin spawned probably), and we're trying to hook up with our openspace sector
return get_dist(our_sector, waypoint_sector(next_location)) <= range
@@ -177,4 +177,4 @@
// Walls hide stuff inside them, but we want to be visible.
/obj/structure/fuel_port/hide()
return
return