From 3002de4b50ba63be4d935733c44af3bedc4ab1d2 Mon Sep 17 00:00:00 2001 From: mwerezak Date: Sun, 7 Dec 2014 00:59:07 -0500 Subject: [PATCH] Fixes atoms with no flags being walkable Fixes atoms that have no flags set allowing movement into them regardless of CanPass(). --- code/game/turfs/turf.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/game/turfs/turf.dm b/code/game/turfs/turf.dm index 80a70d5c04..d2cd7a18d5 100644 --- a/code/game/turfs/turf.dm +++ b/code/game/turfs/turf.dm @@ -86,7 +86,7 @@ //Finally, check objects/mobs to block entry that are not on the border for(var/atom/movable/obstacle in src) - if(obstacle.flags & ~ON_BORDER) + if(!(obstacle.flags & ON_BORDER)) if(!obstacle.CanPass(mover, mover.loc, 1, 0) && (forget != obstacle)) mover.Bump(obstacle, 1) return 0