summaryrefslogtreecommitdiff
path: root/src/net/tmwa/messageout.h
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2011-06-02 23:49:49 -0700
committerJared Adams <jaxad0127@gmail.com>2011-06-03 11:03:25 -0600
commit894038adf52a3e2b42542239a147d6c1cc1ad204 (patch)
treeb881994e4605bcf0ba2d1df68068a78fb21ecf01 /src/net/tmwa/messageout.h
parentd50f35d13e73b72eae1d744971657bd665aa1f33 (diff)
downloadmana-894038adf52a3e2b42542239a147d6c1cc1ad204.tar.gz
mana-894038adf52a3e2b42542239a147d6c1cc1ad204.tar.bz2
mana-894038adf52a3e2b42542239a147d6c1cc1ad204.tar.xz
mana-894038adf52a3e2b42542239a147d6c1cc1ad204.zip
Cleanup network code to use unsigned integers of the relevant size
Diffstat (limited to 'src/net/tmwa/messageout.h')
-rw-r--r--src/net/tmwa/messageout.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/net/tmwa/messageout.h b/src/net/tmwa/messageout.h
index 34958e82..3a6f34a9 100644
--- a/src/net/tmwa/messageout.h
+++ b/src/net/tmwa/messageout.h
@@ -39,16 +39,16 @@ class Network;
class MessageOut : public Net::MessageOut
{
public:
- MessageOut(short id);
+ MessageOut(Uint16 id);
- void writeInt16(Sint16 value); /**< Writes a short. */
- void writeInt32(Sint32 value); /**< Writes a long. */
+ void writeInt16(Uint16 value); /**< Writes a short. */
+ void writeInt32(Uint32 value); /**< Writes a "long". */
/**
* Encodes coordinates and direction in 3 bytes.
*/
- void writeCoordinates(unsigned short x, unsigned short y,
- unsigned char direction);
+ void writeCoordinates(Uint16 x, Uint16 y,
+ Uint8 direction);
private:
void expand(size_t size);