From 6863cdfb2de293822f1fb0d8804a5221a204f52d Mon Sep 17 00:00:00 2001 From: DZD Date: Thu, 30 Oct 2014 20:20:45 -0400 Subject: [PATCH] Fixes Table Climbing Edge Case with Windoors With the fix that I had implemented to prevent climbing through solid objects, a windoor on the other side of a table would prevent climbing, now the check ignores windoors, as they already block climbing from the same side. --- code/game/objects/structures.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/game/objects/structures.dm b/code/game/objects/structures.dm index a2b2283fbcb..1e81e53bdd0 100644 --- a/code/game/objects/structures.dm +++ b/code/game/objects/structures.dm @@ -51,7 +51,7 @@ return for(var/obj/O in range(0, src)) - if(O.density == 1 && O != src) + if(O.density == 1 && O != src && !istype(O, /obj/machinery/door/window)) //Ignores windoors, as those already block climbing, otherwise a windoor on the opposite side of a table would prevent climbing. user << "\red You cannot climb a [src] blocked by a solid object!" return for(var/turf/T in range(0, src))