Fixes atoms with no flags being walkable

Fixes atoms that have no flags set allowing movement into them
regardless of CanPass().
This commit is contained in:
mwerezak
2014-12-07 00:59:07 -05:00
parent 8aaf476373
commit 3002de4b50

View File

@@ -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