summaryrefslogtreecommitdiff
path: root/src/being/localplayer.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-29 23:24:05 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-29 23:24:05 +0300
commitc593adb7fb0dffc62f1311e6c52f25bfafcdf0f4 (patch)
treefc89a0dde74c24d2876cf5833ff1d42d3ffd8c51 /src/being/localplayer.cpp
parente9b375927f271808d507c5a95443d460bbd6ce92 (diff)
downloadmv-c593adb7fb0dffc62f1311e6c52f25bfafcdf0f4.tar.gz
mv-c593adb7fb0dffc62f1311e6c52f25bfafcdf0f4.tar.bz2
mv-c593adb7fb0dffc62f1311e6c52f25bfafcdf0f4.tar.xz
mv-c593adb7fb0dffc62f1311e6c52f25bfafcdf0f4.zip
Convert BeingAction enum into strong typed enum.
Diffstat (limited to 'src/being/localplayer.cpp')
-rw-r--r--src/being/localplayer.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/being/localplayer.cpp b/src/being/localplayer.cpp
index 1374eefab..4ad43b098 100644
--- a/src/being/localplayer.cpp
+++ b/src/being/localplayer.cpp
@@ -372,7 +372,7 @@ void LocalPlayer::slowLogic()
BLOCK_END("LocalPlayer::slowLogic")
}
-void LocalPlayer::setAction(const BeingAction::Action &action,
+void LocalPlayer::setAction(const BeingActionT &action,
const int attackType)
{
if (action == BeingAction::DEAD)
@@ -691,7 +691,7 @@ bool LocalPlayer::toggleSit() const
if (!PacketLimiter::limitPackets(PACKET_SIT))
return false;
- BeingAction::Action newAction;
+ BeingActionT newAction;
switch (mAction)
{
case BeingAction::STAND:
@@ -2241,7 +2241,7 @@ void LocalPlayer::imitateEmote(const Being *const being,
}
void LocalPlayer::imitateAction(const Being *const being,
- const BeingAction::Action &action)
+ const BeingActionT &action)
{
if (!being)
return;