summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/game.cpp33
1 files changed, 0 insertions, 33 deletions
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)) {