From 241e2461446a830194f202b840abcd3598f804a5 Mon Sep 17 00:00:00 2001 From: Jan-Fabian Humann Date: Sat, 21 May 2005 19:33:55 +0000 Subject: removing old trade item okay packet --- src/game.cpp | 33 --------------------------------- 1 file changed, 33 deletions(-) (limited to 'src/game.cpp') diff --git a/src/game.cpp b/src/game.cpp index 0f04417a..c02bcccb 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -886,39 +886,6 @@ void do_parse() break; } break; - // Trade: Old Item add response - case 0x00ea: - tradeWindow->setTradeButton(false); - //chatWindow->chat_log("add response got", BY_SERVER); - switch (RFIFOB(4)) { - case 0: - // Successfully added item - if (inventoryWindow->items->isEquipment(RFIFOW(2))) { - if (inventoryWindow->items->isEquipped(RFIFOW(2))) { - inventoryWindow->unequipItem(RFIFOW(2)); - } - } - //TODO: Fix this lines (to handle correct quantity) - tradeWindow->addItem( - tradeWindow->myItems->getFreeSlot(), - inventoryWindow->items->getId(RFIFOW(2)), - true, inventoryWindow->items->getQuantity( - RFIFOW(2)), - inventoryWindow->items->isEquipment( - RFIFOW(2))); - inventoryWindow->changeQuantity(RFIFOW(2), 0); - break; - case 1: - // Add item failed - player overweighted - chatWindow->chat_log("Failed adding item. Trade " - "partner is over weighted.", BY_SERVER); - break; - default: - //printf("Unhandled 0x00ea byte!\n"); - break; - } - break; - // Trade received Ok message case 0x00ec: switch (RFIFOB(2)) { -- cgit v1.2.3-70-g09d2