diff options
author | Jared Adams <jaxad0127@gmail.com> | 2010-05-23 19:09:14 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2010-05-23 19:20:09 -0600 |
commit | 698620d703fea6d572c967bfa746d475d28f2d81 (patch) | |
tree | 84569e4a66e0b502f3177308765be646f3b8c35d /src/being.cpp | |
parent | 54fb1e339796db4b75560b024a96c6b84a70d89f (diff) | |
download | mana-698620d703fea6d572c967bfa746d475d28f2d81.tar.gz mana-698620d703fea6d572c967bfa746d475d28f2d81.tar.bz2 mana-698620d703fea6d572c967bfa746d475d28f2d81.tar.xz mana-698620d703fea6d572c967bfa746d475d28f2d81.zip |
Fix attack display for beings without an attack defined
Reviewed-by: 4144
Diffstat (limited to 'src/being.cpp')
-rw-r--r-- | src/being.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/being.cpp b/src/being.cpp index 24f2e2e1..fd3561ae 100644 --- a/src/being.cpp +++ b/src/being.cpp @@ -370,13 +370,8 @@ void Being::handleAttack(Being *victim, int damage, AttackType type) if (this != player_node) setAction(Being::ATTACK, 1); - if (getType() == PLAYER && victim) - { - if (mEquippedWeapon) - { - fireMissile(victim, mEquippedWeapon->getMissileParticle()); - } - } + if (getType() == PLAYER && victim && mEquippedWeapon) + fireMissile(victim, mEquippedWeapon->getMissileParticle()); else fireMissile(victim, mInfo->getAttack(mAttackType)->missileParticle); |