diff options
author | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2010-11-03 23:15:47 +0100 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2010-11-03 23:27:30 +0100 |
commit | b7f58023d6596d96c36b904c02a81e0b52fc28f1 (patch) | |
tree | 7a10a72c7e8fa9ca99e98a913704c76fe5bfe5f9 /src/game-server/buysell.cpp | |
parent | 0de400f87b7ecc4bcbdbd1f3dfd552c60c5e927b (diff) | |
download | manaserv-b7f58023d6596d96c36b904c02a81e0b52fc28f1.tar.gz manaserv-b7f58023d6596d96c36b904c02a81e0b52fc28f1.tar.bz2 manaserv-b7f58023d6596d96c36b904c02a81e0b52fc28f1.tar.xz manaserv-b7f58023d6596d96c36b904c02a81e0b52fc28f1.zip |
Renamed write{Byte,Short,Long} to writeInt{8,16,32}
Mainly for consistency with the client, and the general consensus was
that these numbered versions were clearer.
Diffstat (limited to 'src/game-server/buysell.cpp')
-rw-r--r-- | src/game-server/buysell.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/game-server/buysell.cpp b/src/game-server/buysell.cpp index cf5b8fe5..a6f68e1a 100644 --- a/src/game-server/buysell.cpp +++ b/src/game-server/buysell.cpp @@ -109,13 +109,13 @@ bool BuySell::start(Actor *actor) } MessageOut msg(mSell ? GPMSG_NPC_SELL : GPMSG_NPC_BUY); - msg.writeShort(actor->getPublicID()); + msg.writeInt16(actor->getPublicID()); for (TradedItems::const_iterator i = mItems.begin(), i_end = mItems.end(); i != i_end; ++i) { - msg.writeShort(i->itemId); - msg.writeShort(i->amount); - msg.writeShort(i->cost); + msg.writeInt16(i->itemId); + msg.writeInt16(i->amount); + msg.writeInt16(i->cost); } mChar->getClient()->send(msg); return true; |