summaryrefslogtreecommitdiff
path: root/src/being/localplayer.cpp
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 /src/being/localplayer.cpp
parentf146cd42ce84a08879eb286ecd2ed2aa8ad82300 (diff)
downloadmanaplus-6d709b0c218791fdacdbd8b234a1301a135aeb33.tar.gz
manaplus-6d709b0c218791fdacdbd8b234a1301a135aeb33.tar.bz2
manaplus-6d709b0c218791fdacdbd8b234a1301a135aeb33.tar.xz
manaplus-6d709b0c218791fdacdbd8b234a1301a135aeb33.zip
fix moving in crazy moves.
Diffstat (limited to 'src/being/localplayer.cpp')
-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;