Skip to content

Commit

Permalink
lol
Browse files Browse the repository at this point in the history
  • Loading branch information
MrMelbert committed Jul 7, 2020
1 parent ac4ad70 commit 1e4ce1e
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions code/game/objects/structures/railings.dm
Original file line number Diff line number Diff line change
Expand Up @@ -67,20 +67,21 @@
return TRUE

/obj/structure/railing/CanPass(atom/movable/mover, turf/target)
..()
. = ..()
if(get_dir(loc, target) & dir)
var/checking = UNSTOPPABLE | FLYING | FLOATING
return !density || mover.movement_type & checking
var/checking = FLYING | FLOATING
return . || mover.movement_type & checking
return TRUE

/obj/structure/railing/corner/CanPass()
..()
return TRUE

/obj/structure/railing/CheckExit(atom/movable/O, turf/target)
/obj/structure/railing/CheckExit(atom/movable/mover, turf/target)
..()
if(get_dir(loc, target) & dir)
return FALSE
var/checking = UNSTOPPABLE | FLYING | FLOATING
return !density || mover.movement_type & checking || mover.move_force >= MOVE_FORCE_EXTREMELY_STRONG
return TRUE

/obj/structure/railing/corner/CheckExit()
Expand Down

0 comments on commit 1e4ce1e

Please sign in to comment.