mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-20 19:44:09 +01:00
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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user