!(bitfield & FLAG) is a NAND

(bitfield & ~FLAG) is not a NAND

Should fix some things colliding with directional windows when moving parallel on the same turf.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5214 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
elly1989@rocketmail.com
2012-11-28 03:10:28 +00:00
parent 7b4b0f743f
commit 75673cfcb8
+1 -1
View File
@@ -74,7 +74,7 @@
//First, check objects to block exit that are not on the border
for(var/obj/obstacle in mover.loc)
if((obstacle.flags & ~ON_BORDER) && (mover != obstacle) && (forget != obstacle))
if(!(obstacle.flags & ON_BORDER) && (mover != obstacle) && (forget != obstacle))
if(!obstacle.CheckExit(mover, src))
mover.Bump(obstacle, 1)
return 0