Removes old height parameter from CanPass proc (#29218)

This commit is contained in:
AnturK
2017-07-13 13:57:25 +02:00
committed by KorPhaeron
parent 7a26305498
commit d3bcb4cbf9
46 changed files with 57 additions and 101 deletions

View File

@@ -81,8 +81,8 @@
else if(secure && !opened)
to_chat(user, "<span class='notice'>Alt-click to [locked ? "unlock" : "lock"].</span>")
/obj/structure/closet/CanPass(atom/movable/mover, turf/target, height=0)
if(height == 0 || wall_mounted)
/obj/structure/closet/CanPass(atom/movable/mover, turf/target)
if(wall_mounted)
return 1
return !density