diff options
author | Stefan Dombrowski <stefan@uni-bonn.de> | 2011-04-29 11:16:21 +0200 |
---|---|---|
committer | Stefan Dombrowski <stefan@uni-bonn.de> | 2011-04-29 11:16:21 +0200 |
commit | 18ea964add44d3d0211785c59b28e7afdc5e45fb (patch) | |
tree | f65677e61a3b773db549a347fa6c9e8ccf1a3cd6 /src/resources/iteminfo.cpp | |
parent | f450d1e7d0238a8126f2fe419aa019767290f9fb (diff) | |
download | mana-18ea964add44d3d0211785c59b28e7afdc5e45fb.tar.gz mana-18ea964add44d3d0211785c59b28e7afdc5e45fb.tar.bz2 mana-18ea964add44d3d0211785c59b28e7afdc5e45fb.tar.xz mana-18ea964add44d3d0211785c59b28e7afdc5e45fb.zip |
Remove default assignment of an attack action to non-weapons
This avoids log warnings for missing weapon range.
Reviewed-by: thorbjorn, bcs86
Diffstat (limited to 'src/resources/iteminfo.cpp')
-rw-r--r-- | src/resources/iteminfo.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/resources/iteminfo.cpp b/src/resources/iteminfo.cpp index 32331e35..ad4b311c 100644 --- a/src/resources/iteminfo.cpp +++ b/src/resources/iteminfo.cpp @@ -41,14 +41,6 @@ const std::string &ItemInfo::getSprite(Gender gender) const } } -void ItemInfo::setAttackAction(std::string attackAction) -{ - if (attackAction.empty()) - mAttackAction = SpriteAction::ATTACK; // (Equal to unarmed animation) - else - mAttackAction = attackAction; -} - void ItemInfo::addSound(EquipmentSoundEvent event, const std::string &filename) { mSounds[event].push_back(paths.getStringValue("sfx") + filename); |