summaryrefslogtreecommitdiff
path: root/src/gui/inventorywindow.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-04-01 11:09:41 -0600
committerJared Adams <jaxad0127@gmail.com>2009-04-01 11:09:41 -0600
commit2a11fd111231a7e40c560e0240578a2b4a2126c2 (patch)
treee6024c5e40fc96ad4ec85b8e4136a4982a35eb02 /src/gui/inventorywindow.cpp
parent33048e36c1fdc642459b0101ad0ab9c63807a3e7 (diff)
downloadmana-client-2a11fd111231a7e40c560e0240578a2b4a2126c2.tar.gz
mana-client-2a11fd111231a7e40c560e0240578a2b4a2126c2.tar.bz2
mana-client-2a11fd111231a7e40c560e0240578a2b4a2126c2.tar.xz
mana-client-2a11fd111231a7e40c560e0240578a2b4a2126c2.zip
Make eAthena's inventory handler
Also cleanup some related #ifdefs in LocalPlayer.
Diffstat (limited to 'src/gui/inventorywindow.cpp')
-rw-r--r--src/gui/inventorywindow.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/gui/inventorywindow.cpp b/src/gui/inventorywindow.cpp
index 51c1372c..0b130581 100644
--- a/src/gui/inventorywindow.cpp
+++ b/src/gui/inventorywindow.cpp
@@ -164,24 +164,18 @@ void InventoryWindow::action(const gcn::ActionEvent &event)
if (event.getId() == "use")
{
-#ifdef TMWSERV_SUPPORT
if (item->isEquipment()) {
+#ifdef TMWSERV_SUPPORT
player_node->equipItem(item);
- }
- else {
- player_node->useItem(item->getInvIndex());
- }
#else
- if (item->isEquipment())
- {
if (item->isEquipped())
player_node->unequipItem(item);
else
player_node->equipItem(item);
+#endif
}
else
player_node->useItem(item);
-#endif
}
else if (event.getId() == "drop")
{