diff options
author | Eugenio Favalli <elvenprogrammer@gmail.com> | 2005-09-19 12:28:42 +0000 |
---|---|---|
committer | Eugenio Favalli <elvenprogrammer@gmail.com> | 2005-09-19 12:28:42 +0000 |
commit | 2c4d4ecc19fc8308b2772e4ffe6570ca362264d1 (patch) | |
tree | a4b6d78a89bfd12b3667129bd0bae63a805682cd /src/gui/trade.cpp | |
parent | cf0f74488b0f2057bc535774dc6a2c871311932f (diff) | |
download | mana-2c4d4ecc19fc8308b2772e4ffe6570ca362264d1.tar.gz mana-2c4d4ecc19fc8308b2772e4ffe6570ca362264d1.tar.bz2 mana-2c4d4ecc19fc8308b2772e4ffe6570ca362264d1.tar.xz mana-2c4d4ecc19fc8308b2772e4ffe6570ca362264d1.zip |
Got rid of writeSet() calls.
Diffstat (limited to 'src/gui/trade.cpp')
-rw-r--r-- | src/gui/trade.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/gui/trade.cpp b/src/gui/trade.cpp index d4c91d19..19aaab9e 100644 --- a/src/gui/trade.cpp +++ b/src/gui/trade.cpp @@ -39,7 +39,6 @@ #include "../item.h" #include "../net/messageout.h" -#include "../net/network.h" #include "../net/protocol.h" #include "../resources/iteminfo.h" @@ -246,7 +245,6 @@ void TradeWindow::tradeItem(Item *item, int quantity) outMsg.writeShort(CMSG_TRADE_ITEM_ADD_REQUEST); outMsg.writeShort(item->getInvIndex()); outMsg.writeLong(quantity); - writeSet(8); } void TradeWindow::mouseClick(int x, int y, int button, int count) @@ -317,7 +315,6 @@ void TradeWindow::action(const std::string &eventId) { MessageOut outMsg; outMsg.writeShort(CMSG_TRADE_CANCEL_REQUEST); - writeSet(2); } else if (eventId == "ok") { @@ -333,19 +330,16 @@ void TradeWindow::action(const std::string &eventId) outMsg.writeShort(CMSG_TRADE_ITEM_ADD_REQUEST); outMsg.writeShort(0); outMsg.writeLong(tempInt); - writeSet(8); } else { moneyField->setText(""); } moneyField->setEnabled(false); MessageOut outMsg; outMsg.writeShort(CMSG_TRADE_ADD_COMPLETE); - writeSet(2); } else if (eventId == "trade") { MessageOut outMsg; outMsg.writeShort(CMSG_TRADE_OK); - writeSet(2); } } |