summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-02-28 17:48:35 +0300
committerAndrei Karas <akaras@inbox.ru>2014-02-28 17:48:35 +0300
commit6d709b0c218791fdacdbd8b234a1301a135aeb33 (patch)
tree4faf0e683b96260fd24b7ff5b2c2760a7d3ce1e7
parentf146cd42ce84a08879eb286ecd2ed2aa8ad82300 (diff)
downloadmv-6d709b0c218791fdacdbd8b234a1301a135aeb33.tar.gz
mv-6d709b0c218791fdacdbd8b234a1301a135aeb33.tar.bz2
mv-6d709b0c218791fdacdbd8b234a1301a135aeb33.tar.xz
mv-6d709b0c218791fdacdbd8b234a1301a135aeb33.zip
fix moving in crazy moves.
-rw-r--r--src/being/localplayer.cpp16
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;