From 6d709b0c218791fdacdbd8b234a1301a135aeb33 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 28 Feb 2014 17:48:35 +0300 Subject: fix moving in crazy moves. --- src/being/localplayer.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src') 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; -- cgit v1.2.3-70-g09d2