summaryrefslogtreecommitdiff
path: root/src/being/being.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-19 22:50:16 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-19 22:50:16 +0300
commitc65cb0d97fbaa37f531d6fb47ce9d798b001b637 (patch)
treecce1030add4a837913b9e730a5550a67d03d236e /src/being/being.cpp
parent3d236906de18c846aa052f1d4cef1b0686a43854 (diff)
downloadManaVerse-c65cb0d97fbaa37f531d6fb47ce9d798b001b637.tar.gz
ManaVerse-c65cb0d97fbaa37f531d6fb47ce9d798b001b637.tar.bz2
ManaVerse-c65cb0d97fbaa37f531d6fb47ce9d798b001b637.tar.xz
ManaVerse-c65cb0d97fbaa37f531d6fb47ce9d798b001b637.zip
fix code style.
Diffstat (limited to 'src/being/being.cpp')
-rw-r--r--src/being/being.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp
index e4205a727..2fd83c7b5 100644
--- a/src/being/being.cpp
+++ b/src/being/being.cpp
@@ -756,8 +756,11 @@ void Being::handleAttack(Being *const victim, const int damage,
if (!weaponId)
weaponId = -100 - mSubType;
const ItemInfo &info = ItemDB::get(weaponId);
- playSfx(info.getSound((damage > 0) ?
- ItemSoundEvent::HIT : ItemSoundEvent::MISS), victim, true, mX, mY);
+ playSfx(info.getSound(
+ (damage > 0) ? ItemSoundEvent::HIT : ItemSoundEvent::MISS),
+ victim,
+ true,
+ mX, mY);
}
}
else
@@ -1209,7 +1212,10 @@ void Being::setAction(const BeingAction::Action &action, const int attackId)
currentAction = getDeadAction();
if (mInfo)
{
- playSfx(mInfo->getSound(ItemSoundEvent::DIE), this, false, mX, mY);
+ playSfx(mInfo->getSound(ItemSoundEvent::DIE),
+ this,
+ false,
+ mX, mY);
if (mType == ActorType::MONSTER || mType == ActorType::NPC)
mYDiff = mInfo->getDeadSortOffsetY();
}