From de7d095b98846529e2394e9868a6dd2e4344acc8 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 27 Feb 2015 20:53:45 +0300 Subject: fix code style. --- src/gui/viewport.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/gui/viewport.cpp') 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( -- cgit v1.2.3-60-g2f50