From 0a2abc874b25d2daba54e70b3a08080e1223f6ba Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Tue, 28 Apr 2009 12:43:10 -0600 Subject: Remove some more support #ifdefs --- src/gui/inventorywindow.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'src/gui/inventorywindow.cpp') diff --git a/src/gui/inventorywindow.cpp b/src/gui/inventorywindow.cpp index c73a12ea..33115f96 100644 --- a/src/gui/inventorywindow.cpp +++ b/src/gui/inventorywindow.cpp @@ -77,10 +77,8 @@ InventoryWindow::InventoryWindow(int invSize): mDropButton = new Button(_("Drop"), "drop", this); #ifdef TMWSERV_SUPPORT mSplitButton = new Button(_("Split"), "split", this); - mItems = new ItemContainer(player_node->getInventory()); -#else - mItems = new ItemContainer(player_node->getInventory()); #endif + mItems = new ItemContainer(player_node->getInventory()); mItems->addSelectionListener(this); gcn::ScrollArea *invenScroll = new ScrollArea(mItems); @@ -167,14 +165,10 @@ void InventoryWindow::action(const gcn::ActionEvent &event) if (event.getId() == "use") { if (item->isEquipment()) { -#ifdef TMWSERV_SUPPORT - player_node->equipItem(item); -#else if (item->isEquipped()) player_node->unequipItem(item); else player_node->equipItem(item); -#endif } else player_node->useItem(item); @@ -268,11 +262,9 @@ void InventoryWindow::updateButtons() if (selectedItem && selectedItem->isEquipment()) { -#ifdef EATHENA_SUPPORT if (selectedItem->isEquipped()) mUseButton->setCaption(_("Unequip")); else -#endif mUseButton->setCaption(_("Equip")); } else -- cgit v1.2.3-70-g09d2