summaryrefslogtreecommitdiff
path: root/src/gui/viewport.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-02-27 20:53:45 +0300
committerAndrei Karas <akaras@inbox.ru>2015-02-27 20:53:45 +0300
commitde7d095b98846529e2394e9868a6dd2e4344acc8 (patch)
tree922f05aaa5746fa90e4c43c0a9160b5f6b51fe81 /src/gui/viewport.cpp
parent32947c0634ec582f6d641402433d2037f5087a36 (diff)
downloadmv-de7d095b98846529e2394e9868a6dd2e4344acc8.tar.gz
mv-de7d095b98846529e2394e9868a6dd2e4344acc8.tar.bz2
mv-de7d095b98846529e2394e9868a6dd2e4344acc8.tar.xz
mv-de7d095b98846529e2394e9868a6dd2e4344acc8.zip
fix code style.
Diffstat (limited to 'src/gui/viewport.cpp')
-rw-r--r--src/gui/viewport.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gui/viewport.cpp b/src/gui/viewport.cpp
index 4592d5e69..fa29590f4 100644
--- a/src/gui/viewport.cpp
+++ b/src/gui/viewport.cpp
@@ -413,7 +413,8 @@ bool Viewport::openContextMenu(const MouseEvent &event)
bool Viewport::leftMouseAction()
{
- const bool stopAttack = inputManager.isActionActive(InputAction::STOP_ATTACK);
+ const bool stopAttack = inputManager.isActionActive(
+ InputAction::STOP_ATTACK);
// Interact with some being
if (mHoverBeing)
{
@@ -441,7 +442,9 @@ bool Viewport::leftMouseAction()
return true;
}
}
- else if (!stopAttack && (type == ActorType::Monster || type == ActorType::Npc))
+ else if (!stopAttack &&
+ (type == ActorType::Monster ||
+ type == ActorType::Npc))
{
if ((localPlayer->withinAttackRange(mHoverBeing) ||
inputManager.isActionActive(static_cast<int>(