summaryrefslogtreecommitdiff
path: root/src/being/localplayer.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-01 21:21:06 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-01 22:13:44 +0300
commit41ffafd17ad8f0a7ee060cc9f48bca04a1e16cb6 (patch)
tree75a934dd456f4079898b77f17fc2e5da631ba761 /src/being/localplayer.cpp
parent33ef923235aeabd07308816bb07ef790cc6c1024 (diff)
downloadManaVerse-41ffafd17ad8f0a7ee060cc9f48bca04a1e16cb6.tar.gz
ManaVerse-41ffafd17ad8f0a7ee060cc9f48bca04a1e16cb6.tar.bz2
ManaVerse-41ffafd17ad8f0a7ee060cc9f48bca04a1e16cb6.tar.xz
ManaVerse-41ffafd17ad8f0a7ee060cc9f48bca04a1e16cb6.zip
Fix code style.
Diffstat (limited to 'src/being/localplayer.cpp')
-rw-r--r--src/being/localplayer.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/being/localplayer.cpp b/src/being/localplayer.cpp
index ba0467bfb..e81daf267 100644
--- a/src/being/localplayer.cpp
+++ b/src/being/localplayer.cpp
@@ -1223,8 +1223,12 @@ void LocalPlayer::moveToHome()
void LocalPlayer::changeEquipmentBeforeAttack(const Being *const target) const
{
- if (settings.attackWeaponType == 1 || !target || !PlayerInfo::getInventory())
+ if (settings.attackWeaponType == 1
+ || !target
+ || !PlayerInfo::getInventory())
+ {
return;
+ }
bool allowSword = false;
const int dx = target->getTileX() - mX;