summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-08-22 02:26:10 +0300
committerAndrei Karas <akaras@inbox.ru>2017-08-22 02:26:10 +0300
commitb3383a1069825df58adc71994a70a0e53e52f82a (patch)
tree6743fe9fcbdce57fb76a6c8b91fb3617c4dc5fad /src
parent238642d6a99d3f764529a339d0802d3e3909f391 (diff)
downloadplus-b3383a1069825df58adc71994a70a0e53e52f82a.tar.gz
plus-b3383a1069825df58adc71994a70a0e53e52f82a.tar.bz2
plus-b3383a1069825df58adc71994a70a0e53e52f82a.tar.xz
plus-b3383a1069825df58adc71994a70a0e53e52f82a.zip
Remove default patameter from LocalPlayer::setAction.
Diffstat (limited to 'src')
-rw-r--r--src/being/localplayer.cpp15
-rw-r--r--src/being/localplayer.h2
2 files changed, 9 insertions, 8 deletions
diff --git a/src/being/localplayer.cpp b/src/being/localplayer.cpp
index 375b31aea..981234ec4 100644
--- a/src/being/localplayer.cpp
+++ b/src/being/localplayer.cpp
@@ -393,7 +393,7 @@ void LocalPlayer::slowLogic()
}
void LocalPlayer::setAction(const BeingActionT &action,
- const int attackType)
+ const int attackId)
{
if (action == BeingAction::DEAD)
{
@@ -408,7 +408,8 @@ void LocalPlayer::setAction(const BeingActionT &action,
setTarget(nullptr);
}
- Being::setAction(action, attackType);
+ Being::setAction(action,
+ attackId);
#ifdef USE_MUMBLE
if (mumbleManager)
mumbleManager->setAction(CAST_S32(action));
@@ -480,7 +481,7 @@ void LocalPlayer::nextTile(unsigned char dir A_UNUSED = 0)
if (mPath.empty())
{
if (mNavigatePath.empty() || mAction != BeingAction::MOVE)
- setAction(BeingAction::STAND);
+ setAction(BeingAction::STAND, 0);
else
mNextStep = true;
}
@@ -720,7 +721,7 @@ void LocalPlayer::stopWalking(const bool sendToServer)
mPixelY,
-1);
}
- setAction(BeingAction::STAND);
+ setAction(BeingAction::STAND, 0);
}
// No path set anymore, so we reset the path by mouse flag
@@ -824,7 +825,7 @@ void LocalPlayer::attack(Being *const target, const bool keep,
if (target->getType() != ActorType::Player
|| checAttackPermissions(target))
{
- setAction(BeingAction::ATTACK);
+ setAction(BeingAction::ATTACK, 0);
if (!PacketLimiter::limitPackets(PacketType::PACKET_ATTACK))
return;
@@ -857,7 +858,7 @@ void LocalPlayer::stopAttack(const bool keepAttack)
void LocalPlayer::untarget()
{
if (mAction == BeingAction::ATTACK)
- setAction(BeingAction::STAND);
+ setAction(BeingAction::STAND, 0);
if (mTarget != nullptr)
setTarget(nullptr);
@@ -2361,7 +2362,7 @@ void LocalPlayer::imitateAction(const Being *const being,
if (!mPlayerImitated.empty() && being->mName == mPlayerImitated)
{
- setAction(action);
+ setAction(action, 0);
playerHandler->changeAction(action);
}
}
diff --git a/src/being/localplayer.h b/src/being/localplayer.h
index fced5be26..7840bc665 100644
--- a/src/being/localplayer.h
+++ b/src/being/localplayer.h
@@ -72,7 +72,7 @@ class LocalPlayer final : public Being,
void slowLogic();
void setAction(const BeingActionT &action,
- const int attackType = 0) override final;
+ const int attackId) override final;
/**
* Compute the next pathnode location when walking using keyboard.