summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2008-10-01 22:20:24 +0000
committerIra Rice <irarice@gmail.com>2008-10-01 22:20:24 +0000
commit593fe4be5b47a5c25087315667c43125070b2e97 (patch)
tree1d71bd4946a4153f5bcfc0333134b276977acea7
parentad4b0d0b8e32e61798ade9c256f850e8f96575f3 (diff)
downloadmana-client-593fe4be5b47a5c25087315667c43125070b2e97.tar.gz
mana-client-593fe4be5b47a5c25087315667c43125070b2e97.tar.bz2
mana-client-593fe4be5b47a5c25087315667c43125070b2e97.tar.xz
mana-client-593fe4be5b47a5c25087315667c43125070b2e97.zip
Reduced arrow equipping so that it only does what it needs to do.
Hopefully, this is the arrow bug. If not, then there's no way that this bug is not shared by both TMW and Aethyra.
-rw-r--r--src/equipment.cpp11
-rw-r--r--src/equipment.h2
2 files changed, 1 insertions, 12 deletions
diff --git a/src/equipment.cpp b/src/equipment.cpp
index 9a87c6b5..b2d5e609 100644
--- a/src/equipment.cpp
+++ b/src/equipment.cpp
@@ -54,14 +54,3 @@ void Equipment::setEquipment(int index, Item *item)
mEquipment[index] = item;
item->setEquipped(true);
}
-
-void Equipment::setArrows(Item *arrows)
-{
- if (mArrows)
- mArrows->setEquipped(false);
-
- mArrows = arrows;
-
- if (arrows)
- arrows->setEquipped(true);
-}
diff --git a/src/equipment.h b/src/equipment.h
index e497a156..7977894a 100644
--- a/src/equipment.h
+++ b/src/equipment.h
@@ -71,7 +71,7 @@ class Equipment
* Set the item used in the arrow slot.
*/
void
- setArrows(Item *arrows);
+ setArrows(Item *arrows) {mArrows = arrows;}
private:
Item *mEquipment[EQUIPMENT_SIZE];