diff options
author | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-08-14 10:36:39 +0000 |
---|---|---|
committer | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-08-14 10:36:39 +0000 |
commit | b9772c8575708a9f28d89b3b973af73e382e9329 (patch) | |
tree | d5490d229b2ff43d033d07c1c23e36027255406c /src/net/messagein.h | |
parent | 1c46904573aa83132afc90f86381034405ae796e (diff) | |
download | mana-b9772c8575708a9f28d89b3b973af73e382e9329.tar.gz mana-b9772c8575708a9f28d89b3b973af73e382e9329.tar.bz2 mana-b9772c8575708a9f28d89b3b973af73e382e9329.tar.xz mana-b9772c8575708a9f28d89b3b973af73e382e9329.zip |
Fixed error-prone interface. Handled money as an inventory part.
Diffstat (limited to 'src/net/messagein.h')
-rw-r--r-- | src/net/messagein.h | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/src/net/messagein.h b/src/net/messagein.h index cb8e44cd..37103f2c 100644 --- a/src/net/messagein.h +++ b/src/net/messagein.h @@ -41,16 +41,11 @@ class MessageIn */ MessageIn(const char *data, unsigned int length); - /** - * Destructor. - */ - ~MessageIn(); - - short getId() { return mId; } /**< Returns the message ID. */ + int getId() { return mId; } /**< Returns the message ID. */ - char readByte(); /**< Reads a byte. */ - short readShort(); /**< Reads a short. */ - long readLong(); /**< Reads a long. */ + int readByte(); /**< Reads a byte. */ + int readShort(); /**< Reads a short. */ + int readLong(); /**< Reads a long. */ /** * Reads a 3-byte block containing tile-based coordinates. @@ -79,7 +74,7 @@ class MessageIn private: const char* mData; /**< The message data. */ unsigned int mLength; /**< The length of the data. */ - short mId; /**< The message ID. */ + unsigned short mId; /**< The message ID. */ /** * Actual position in the packet. From 0 to packet->length. |