diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-03-15 00:26:35 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-03-15 00:26:35 +0300 |
commit | ff516e9f60e9554e8938d04192a8e5ec9efb5647 (patch) | |
tree | b134dd0202377c5b182f62870b983fe078700e28 /src/gui/viewport.cpp | |
parent | 269f642099ec8e4c6bcf735496c32ee8019aaf1b (diff) | |
download | ManaVerse-ff516e9f60e9554e8938d04192a8e5ec9efb5647.tar.gz ManaVerse-ff516e9f60e9554e8938d04192a8e5ec9efb5647.tar.bz2 ManaVerse-ff516e9f60e9554e8938d04192a8e5ec9efb5647.tar.xz ManaVerse-ff516e9f60e9554e8938d04192a8e5ec9efb5647.zip |
fix code style.
Diffstat (limited to 'src/gui/viewport.cpp')
-rw-r--r-- | src/gui/viewport.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/viewport.cpp b/src/gui/viewport.cpp index 9b349c7f6..c2000b562 100644 --- a/src/gui/viewport.cpp +++ b/src/gui/viewport.cpp @@ -361,7 +361,7 @@ void Viewport::_drawPath(Graphics *const graphics, const Path &path, } } -bool Viewport::openContextMenu(MouseEvent &event) +bool Viewport::openContextMenu(const MouseEvent &event) { mPlayerFollowMouse = false; const int eventX = event.getX(); @@ -440,7 +440,7 @@ bool Viewport::leftMouseAction() Input::KEY_ATTACK))) { validateSpeed(); - if (player_node != mHoverBeing) + if (!mStatsReUpdated && player_node != mHoverBeing) { player_node->attack(mHoverBeing, !inputManager.isActionActive( @@ -452,7 +452,7 @@ bool Viewport::leftMouseAction() Input::KEY_ATTACK))) { validateSpeed(); - if (player_node != mHoverBeing) + if (!mStatsReUpdated && player_node != mHoverBeing) { player_node->setGotoTarget(mHoverBeing); return true; @@ -543,7 +543,7 @@ void Viewport::mousePressed(MouseEvent &event) } } -void Viewport::walkByMouse(MouseEvent &event) +void Viewport::walkByMouse(const MouseEvent &event) { if (!mMap || !player_node) return; |