summaryrefslogtreecommitdiff
path: root/src/being/localplayer.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-13 23:09:44 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-13 23:09:44 +0300
commit1c7c54e8102f1f449ffe7dfaa3a041915079d290 (patch)
tree3da90ea7e18d4c4a6fe2f0eb4c76718dc3e489f5 /src/being/localplayer.cpp
parent467455bf7907411918d8fb6f4113eb95df443a29 (diff)
downloadmanaplus-1c7c54e8102f1f449ffe7dfaa3a041915079d290.tar.gz
manaplus-1c7c54e8102f1f449ffe7dfaa3a041915079d290.tar.bz2
manaplus-1c7c54e8102f1f449ffe7dfaa3a041915079d290.tar.xz
manaplus-1c7c54e8102f1f449ffe7dfaa3a041915079d290.zip
fix code style.
Diffstat (limited to 'src/being/localplayer.cpp')
-rw-r--r--src/being/localplayer.cpp16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/being/localplayer.cpp b/src/being/localplayer.cpp
index 9ba8b236b..8d921d8dd 100644
--- a/src/being/localplayer.cpp
+++ b/src/being/localplayer.cpp
@@ -36,6 +36,7 @@
#include "resources/map/walklayer.h"
#include "being/attributes.h"
+#include "being/beingflag.h"
#include "being/pickup.h"
#include "being/playerinfo.h"
#include "being/playerrelations.h"
@@ -763,7 +764,8 @@ void LocalPlayer::attack(Being *const target, const bool keep,
mActionTime = tick_time;
- if (target->getType() != ActorType::PLAYER || checAttackPermissions(target))
+ if (target->getType() != ActorType::PLAYER
+ || checAttackPermissions(target))
{
setAction(BeingAction::ATTACK);
@@ -2284,28 +2286,32 @@ void LocalPlayer::crazyMoveA()
// if (client->limitPackets(PACKET_DIRECTION))
{
setDirection(BeingDirection::DOWN);
- Net::getPlayerHandler()->setDirection(BeingDirection::DOWN);
+ Net::getPlayerHandler()->setDirection(
+ BeingDirection::DOWN);
}
break;
case 'u':
// if (client->limitPackets(PACKET_DIRECTION))
{
setDirection(BeingDirection::UP);
- Net::getPlayerHandler()->setDirection(BeingDirection::UP);
+ Net::getPlayerHandler()->setDirection(
+ BeingDirection::UP);
}
break;
case 'l':
// if (client->limitPackets(PACKET_DIRECTION))
{
setDirection(BeingDirection::LEFT);
- Net::getPlayerHandler()->setDirection(BeingDirection::LEFT);
+ Net::getPlayerHandler()->setDirection(
+ BeingDirection::LEFT);
}
break;
case 'r':
// if (client->limitPackets(PACKET_DIRECTION))
{
setDirection(BeingDirection::RIGHT);
- Net::getPlayerHandler()->setDirection(BeingDirection::RIGHT);
+ Net::getPlayerHandler()->setDirection(
+ BeingDirection::RIGHT);
}
break;
case 'L':