diff options
author | Jan-Fabian Humann <malastare@gmx.net> | 2005-05-22 02:06:58 +0000 |
---|---|---|
committer | Jan-Fabian Humann <malastare@gmx.net> | 2005-05-22 02:06:58 +0000 |
commit | fc6207f21a7beaeef968e032917181809f822a67 (patch) | |
tree | 8e392e7965855663513430299c8f486f4167528b /src/game.cpp | |
parent | a64c5b01e683e76def759e6e871ceee330c9ae09 (diff) | |
download | mana-fc6207f21a7beaeef968e032917181809f822a67.tar.gz mana-fc6207f21a7beaeef968e032917181809f822a67.tar.bz2 mana-fc6207f21a7beaeef968e032917181809f822a67.tar.xz mana-fc6207f21a7beaeef968e032917181809f822a67.zip |
another trade update: trading money is possible now, left box is for money you send, the right label shows the money you receive. Due to stupid RO protocol money value will only be submitted when you press Ok.
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/game.cpp b/src/game.cpp index 6aad95fd..f41651e2 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -846,11 +846,14 @@ void do_parse() case 0x00e9: // TODO: // Maybe also handle identified, etc - // handle zeny as well - - tradeWindow->addItem( + if (RFIFOW(6) == 0) + { + tradeWindow->addMoney(RFIFOL(2)); + } else { + tradeWindow->addItem( tradeWindow->partnerItems->getFreeSlot(), RFIFOW(6), false, RFIFOL(2), false); + } break; // Trade: New Item add response case 0x01b1: |