From c2efedab22275302f0a10cc197424d345a021d18 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 17 Jun 2012 20:13:48 +0300 Subject: Replace SDL int types to C++ types. --- src/net/messagein.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/net/messagein.h') diff --git a/src/net/messagein.h b/src/net/messagein.h index 1eb5bf232..8672a0771 100644 --- a/src/net/messagein.h +++ b/src/net/messagein.h @@ -58,7 +58,7 @@ class MessageIn virtual unsigned char readInt8(); /**< Reads a byte. */ - virtual Sint16 readInt16() = 0; /**< Reads a short. */ + virtual int16_t readInt16() = 0; /**< Reads a short. */ virtual int readInt32() = 0; /**< Reads a long. */ @@ -66,20 +66,20 @@ class MessageIn * Reads a 3-byte block containing tile-based coordinates. Used by * manaserv. */ - virtual void readCoordinates(Uint16 &x, Uint16 &y); + virtual void readCoordinates(uint16_t &x, uint16_t &y); /** * Reads a special 3 byte block used by eAthena, containing x and y * coordinates and direction. */ - virtual void readCoordinates(Uint16 &x, Uint16 &y, Uint8 &direction); + virtual void readCoordinates(uint16_t &x, uint16_t &y, uint8_t &direction); /** * Reads a special 5 byte block used by eAthena, containing a source * and destination coordinate pair. */ - virtual void readCoordinatePair(Uint16 &srcX, Uint16 &srcY, - Uint16 &dstX, Uint16 &dstY); + virtual void readCoordinatePair(uint16_t &srcX, uint16_t &srcY, + uint16_t &dstX, uint16_t &dstY); /** * Skips a given number of bytes. -- cgit v1.2.3-70-g09d2