From 552c090559df175ccf2a20e6c17e5496d5261b67 Mon Sep 17 00:00:00 2001 From: Ghom <42542238+Ghommie@users.noreply.github.com> Date: Fri, 26 Nov 2021 21:28:28 +0100 Subject: [PATCH] get_safe_random_station_turf() will now skip groundless turfs. (#63049) --- code/__HELPERS/turfs.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/__HELPERS/turfs.dm b/code/__HELPERS/turfs.dm index 5c81b6ddcd0..bf7ded46084 100644 --- a/code/__HELPERS/turfs.dm +++ b/code/__HELPERS/turfs.dm @@ -337,7 +337,7 @@ Turf and target are separate in case you want to teleport some distance from a t var/I = rand(1, turf_list.len) var/turf/checked_turf = turf_list[I] var/area/turf_area = get_area(checked_turf) - if(!checked_turf.density && (turf_area.area_flags & VALID_TERRITORY)) + if(!checked_turf.density && (turf_area.area_flags & VALID_TERRITORY) && !isgroundlessturf(checked_turf)) var/clear = TRUE for(var/obj/checked_object in checked_turf) if(checked_object.density)