mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-18 02:25:06 +01:00
Fixes #11223
This commit is contained in:
@@ -35,6 +35,7 @@
|
||||
|
||||
var/has_distress_beacon
|
||||
var/list/levels_for_distress
|
||||
var/list/unowned_areas // areas we don't own despite them being present on our z
|
||||
|
||||
/obj/effect/overmap/visitable/Initialize()
|
||||
. = ..()
|
||||
@@ -137,7 +138,12 @@
|
||||
|
||||
//Helper for init.
|
||||
/obj/effect/overmap/visitable/proc/check_ownership(obj/object)
|
||||
if((get_z(object) in map_z) && !(get_area(object) in SSshuttles.shuttle_areas))
|
||||
var/area/A = get_area(object)
|
||||
if(A in SSshuttles.shuttle_areas)
|
||||
return 0
|
||||
if(is_type_in_list(A, unowned_areas))
|
||||
return 0
|
||||
if(get_z(object) in map_z)
|
||||
return 1
|
||||
|
||||
//If shuttle_name is false, will add to generic waypoints; otherwise will add to restricted. Does not do checks.
|
||||
|
||||
Reference in New Issue
Block a user