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.
This commit is contained in:
DZD
2014-10-30 20:20:45 -04:00
parent 8dd8bb5b05
commit 6863cdfb2d
+1 -1
View File
@@ -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))