diff options
author | Björn Steinbrink <B.Steinbrink@gmx.de> | 2005-10-16 21:18:11 +0000 |
---|---|---|
committer | Björn Steinbrink <B.Steinbrink@gmx.de> | 2005-10-16 21:18:11 +0000 |
commit | d3175115354bb2417f01877a96d0068e2f2c875d (patch) | |
tree | 3fe6dde2b7922eb12bc376687ae18a59971d908e /src/gui/trade.cpp | |
parent | 43a80fa64acb7f02cf5305b4a3d2ef6040b4b8c9 (diff) | |
download | mana-d3175115354bb2417f01877a96d0068e2f2c875d.tar.gz mana-d3175115354bb2417f01877a96d0068e2f2c875d.tar.bz2 mana-d3175115354bb2417f01877a96d0068e2f2c875d.tar.xz mana-d3175115354bb2417f01877a96d0068e2f2c875d.zip |
Rename {read,write}{Byte,Short,Long} to {read,write}Int{8,16,32}.
Diffstat (limited to 'src/gui/trade.cpp')
-rw-r--r-- | src/gui/trade.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/gui/trade.cpp b/src/gui/trade.cpp index 19aaab9e..818b8b61 100644 --- a/src/gui/trade.cpp +++ b/src/gui/trade.cpp @@ -242,9 +242,9 @@ void TradeWindow::receivedOk(bool own) void TradeWindow::tradeItem(Item *item, int quantity) { MessageOut outMsg; - outMsg.writeShort(CMSG_TRADE_ITEM_ADD_REQUEST); - outMsg.writeShort(item->getInvIndex()); - outMsg.writeLong(quantity); + outMsg.writeInt16(CMSG_TRADE_ITEM_ADD_REQUEST); + outMsg.writeInt16(item->getInvIndex()); + outMsg.writeInt32(quantity); } void TradeWindow::mouseClick(int x, int y, int button, int count) @@ -314,7 +314,7 @@ void TradeWindow::action(const std::string &eventId) else if (eventId == "cancel") { MessageOut outMsg; - outMsg.writeShort(CMSG_TRADE_CANCEL_REQUEST); + outMsg.writeInt16(CMSG_TRADE_CANCEL_REQUEST); } else if (eventId == "ok") { @@ -327,19 +327,19 @@ void TradeWindow::action(const std::string &eventId) moneyField->setText(tempMoney[1].str()); MessageOut outMsg; - outMsg.writeShort(CMSG_TRADE_ITEM_ADD_REQUEST); - outMsg.writeShort(0); - outMsg.writeLong(tempInt); + outMsg.writeInt16(CMSG_TRADE_ITEM_ADD_REQUEST); + outMsg.writeInt16(0); + outMsg.writeInt32(tempInt); } else { moneyField->setText(""); } moneyField->setEnabled(false); MessageOut outMsg; - outMsg.writeShort(CMSG_TRADE_ADD_COMPLETE); + outMsg.writeInt16(CMSG_TRADE_ADD_COMPLETE); } else if (eventId == "trade") { MessageOut outMsg; - outMsg.writeShort(CMSG_TRADE_OK); + outMsg.writeInt16(CMSG_TRADE_OK); } } |