diff options
Diffstat (limited to 'src/being')
-rw-r--r-- | src/being/localplayer.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/being/localplayer.cpp b/src/being/localplayer.cpp index 5d4ce123e..3d9d06bef 100644 --- a/src/being/localplayer.cpp +++ b/src/being/localplayer.cpp @@ -2240,24 +2240,24 @@ void LocalPlayer::crazyMoveA() move(1, -1); break; case 'f': - if (mDirection | UP) + if (mDirection & UP) dy = -1; - else if (mDirection | DOWN) + else if (mDirection & DOWN) dy = 1; - if (mDirection | LEFT) + if (mDirection & LEFT) dx = -1; - else if (mDirection | RIGHT) + else if (mDirection & RIGHT) dx = 1; move(dx, dy); break; case 'b': - if (mDirection | UP) + if (mDirection & UP) dy = 1; - else if (mDirection | DOWN) + else if (mDirection & DOWN) dy = -1; - if (mDirection | LEFT) + if (mDirection & LEFT) dx = 1; - else if (mDirection | RIGHT) + else if (mDirection & RIGHT) dx = -1; move(dx, dy); break; |