From d2efad15c22d60cfcea028f5dfe69ca0c2ae1f24 Mon Sep 17 00:00:00 2001 From: Bond <58570888+TheBonded@users.noreply.github.com> Date: Thu, 9 Dec 2021 09:54:13 -0700 Subject: [PATCH] Fixes buckling onto tiles with dense atoms (#63277) Before this change, you could put a dense object (like a computer frame) over a chair and buckle to it. This fixes that --- code/game/objects/buckling.dm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/code/game/objects/buckling.dm b/code/game/objects/buckling.dm index 56880932857..0c438dccf2b 100644 --- a/code/game/objects/buckling.dm +++ b/code/game/objects/buckling.dm @@ -218,6 +218,11 @@ if(!isopenturf(loc) || !isopenturf(target.loc)) return FALSE + // Check if the target to buckle isn't A SOLID OBJECT (not including vehicles) + var/turf/ground = get_turf(src) + if(ground.is_blocked_turf(exclude_mobs = TRUE, source_atom = src)) + return FALSE + // Check if this atom can have things buckled to it. if(!can_buckle && !force) return FALSE