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
This commit is contained in:
Bond
2021-12-09 16:54:13 +00:00
committed by GitHub
parent d1e9138494
commit d2efad15c2
+5
View File
@@ -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