From cb8e5a5fb92e1c8d7bbcdae9c64978695105ad6c Mon Sep 17 00:00:00 2001 From: PowerfulBacon <26465327+PowerfulBacon@users.noreply.github.com> Date: Mon, 8 Apr 2024 18:54:30 +0100 Subject: [PATCH] Stops bags from spawning under objects --- .../traitor/directives/secure_deaddrop/secure_deaddrop.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/antagonists/traitor/directives/secure_deaddrop/secure_deaddrop.dm b/code/modules/antagonists/traitor/directives/secure_deaddrop/secure_deaddrop.dm index 363a22b1083d4..80e3741258036 100644 --- a/code/modules/antagonists/traitor/directives/secure_deaddrop/secure_deaddrop.dm +++ b/code/modules/antagonists/traitor/directives/secure_deaddrop/secure_deaddrop.dm @@ -23,7 +23,7 @@ var/tc_count = rand(4, 3 + length(teams)) // Put the deaddrop somewhere var/turf/selected = get_random_station_turf() - while (!istype(selected, /turf/open/floor/iron)) + while (!istype(selected, /turf/open/floor/iron) || selected.is_blocked_turf(TRUE)) selected = get_random_station_turf() var/atom/secret_bag = new /obj/item/storage/backpack/satchel/flat/empty(selected) target = new(secret_bag)