From da8d03a095ff2ef34f688db8c602c974be956223 Mon Sep 17 00:00:00 2001 From: Ira Rice Date: Sun, 2 Nov 2008 03:06:25 +0000 Subject: This correctly fixes the attack problem. Apparently, I didn't realize a bit ago that the item type was being used to determine which attack animation to use, since a comment lied about it not being used. --- src/resources/itemdb.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/resources/itemdb.cpp') diff --git a/src/resources/itemdb.cpp b/src/resources/itemdb.cpp index ad9eda01..8b73f646 100644 --- a/src/resources/itemdb.cpp +++ b/src/resources/itemdb.cpp @@ -91,7 +91,7 @@ void ItemDB::load() std::string image = XML::getProperty(node, "image", ""); std::string description = XML::getProperty(node, "description", ""); std::string effect = XML::getProperty(node, "effect", ""); - //int weaponType = XML::getProperty(node, "weapon_type", 0);// Not used by Aethyra + int weaponType = XML::getProperty(node, "weapon_type", 0);// Not used by Aethyra if (id) { @@ -103,7 +103,7 @@ void ItemDB::load() itemInfo->setType(type); itemInfo->setView(view); //itemInfo->setWeight(weight); - //itemInfo->setWeaponType(weaponType); + itemInfo->setWeaponType(weaponType); for_each_xml_child_node(itemChild, node) { -- cgit v1.2.3-70-g09d2