summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJan-Fabian Humann <malastare@gmx.net>2005-05-21 19:33:55 +0000
committerJan-Fabian Humann <malastare@gmx.net>2005-05-21 19:33:55 +0000
commit241e2461446a830194f202b840abcd3598f804a5 (patch)
tree4c0d09017a7a47e0b33704092b5875f97e24964f /src
parentf9dc623ed4984c8ee734185021eb60e4d58a5416 (diff)
downloadmana-client-241e2461446a830194f202b840abcd3598f804a5.tar.gz
mana-client-241e2461446a830194f202b840abcd3598f804a5.tar.bz2
mana-client-241e2461446a830194f202b840abcd3598f804a5.tar.xz
mana-client-241e2461446a830194f202b840abcd3598f804a5.zip
removing old trade item okay packet
Diffstat (limited to 'src')
-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)) {