get_safe_random_station_turf() will now skip groundless turfs. (#63049)

This commit is contained in:
Ghom
2021-11-26 12:28:28 -08:00
committed by GitHub
parent 39fa723fe4
commit 552c090559
+1 -1
View File
@@ -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)