summaryrefslogtreecommitdiff
path: root/src/being/localplayer.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-21 12:28:40 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-21 20:26:12 +0300
commitf4fe732ccbd65fd584b7787f3b5aec904a85d11b (patch)
tree5cf6023ab3713316326547026c10f2fb4ce6d8b8 /src/being/localplayer.cpp
parentc78423448941517eeae0a60e703a5dc2976aed0c (diff)
downloadmanaverse-f4fe732ccbd65fd584b7787f3b5aec904a85d11b.tar.gz
manaverse-f4fe732ccbd65fd584b7787f3b5aec904a85d11b.tar.bz2
manaverse-f4fe732ccbd65fd584b7787f3b5aec904a85d11b.tar.xz
manaverse-f4fe732ccbd65fd584b7787f3b5aec904a85d11b.zip
Fix code style.
Diffstat (limited to 'src/being/localplayer.cpp')
-rw-r--r--src/being/localplayer.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/being/localplayer.cpp b/src/being/localplayer.cpp
index 73c3f40ec..ddc29629e 100644
--- a/src/being/localplayer.cpp
+++ b/src/being/localplayer.cpp
@@ -904,7 +904,8 @@ int LocalPlayer::getAttackRange() const
}
else
{
- const Item *const weapon = PlayerInfo::getEquipment(ItemSlot::FIGHT1_SLOT);
+ const Item *const weapon = PlayerInfo::getEquipment(
+ ItemSlot::FIGHT1_SLOT);
if (weapon)
{
const ItemInfo &info = weapon->getInfo();
@@ -3592,7 +3593,8 @@ void LocalPlayer::setRealPos(const int x, const int y)
if ((mCrossX || mCrossY)
&& layer->getTile(mCrossX, mCrossY)
- && layer->getTile(mCrossX, mCrossY)->getType() == MapItemType::CROSS)
+ && layer->getTile(mCrossX, mCrossY)->getType()
+ == MapItemType::CROSS)
{
layer->setTile(mCrossX, mCrossY, MapItemType::EMPTY);
}