summaryrefslogtreecommitdiff
path: root/src/progs/manaplus/gui/viewport.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/progs/manaplus/gui/viewport.cpp')
-rw-r--r--src/progs/manaplus/gui/viewport.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/progs/manaplus/gui/viewport.cpp b/src/progs/manaplus/gui/viewport.cpp
index de7571c7c..2ae57f170 100644
--- a/src/progs/manaplus/gui/viewport.cpp
+++ b/src/progs/manaplus/gui/viewport.cpp
@@ -467,7 +467,8 @@ bool Viewport::leftMouseAction()
case ActorType::SkillUnit:
if (!stopAttack)
{
- if (localPlayer->withinAttackRange(mHoverBeing) ||
+ if (localPlayer->withinAttackRange(mHoverBeing,
+ false, 0) ||
inputManager.isActionActive(InputAction::ATTACK))
{
validateSpeed();
@@ -475,7 +476,8 @@ bool Viewport::leftMouseAction()
{
localPlayer->attack(mHoverBeing,
!inputManager.isActionActive(
- InputAction::STOP_ATTACK));
+ InputAction::STOP_ATTACK),
+ false);
return true;
}
}
@@ -531,7 +533,7 @@ bool Viewport::leftMouseAction()
localPlayer->canMove())
{
validateSpeed();
- localPlayer->stopAttack();
+ localPlayer->stopAttack(false);
localPlayer->cancelFollow();
mPlayerFollowMouse = mAllowMoveByMouse;
if (mPlayerFollowMouse)