summaryrefslogtreecommitdiff
path: root/src/net/messagein.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-12-26 12:59:23 +0300
committerAndrei Karas <akaras@inbox.ru>2013-12-26 12:59:23 +0300
commitc87f02c075919337018b534b6f8ef2c97160c883 (patch)
tree93cbc4d097d0978638076c869dc7d8f39bc4b03e /src/net/messagein.h
parent7d2146f1ed4fbb0d0febd9bd78b5a864764282d1 (diff)
downloadmanaplus-c87f02c075919337018b534b6f8ef2c97160c883.tar.gz
manaplus-c87f02c075919337018b534b6f8ef2c97160c883.tar.bz2
manaplus-c87f02c075919337018b534b6f8ef2c97160c883.tar.xz
manaplus-c87f02c075919337018b534b6f8ef2c97160c883.zip
add restrict into messagein.
Diffstat (limited to 'src/net/messagein.h')
-rw-r--r--src/net/messagein.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/net/messagein.h b/src/net/messagein.h
index 47527a879..174d08146 100644
--- a/src/net/messagein.h
+++ b/src/net/messagein.h
@@ -68,21 +68,25 @@ class MessageIn
* Reads a 3-byte block containing tile-based coordinates. Used by
* manaserv.
*/
- virtual void readCoordinates(uint16_t &x, uint16_t &y);
+ virtual void readCoordinates(uint16_t &restrict x,
+ uint16_t &restrict y);
/**
* Reads a special 3 byte block used by eAthena, containing x and y
* coordinates and direction.
*/
- virtual void readCoordinates(uint16_t &x, uint16_t &y,
- uint8_t &direction);
+ virtual void readCoordinates(uint16_t &restrict x,
+ uint16_t &restrict y,
+ uint8_t &restrict direction);
/**
* Reads a special 5 byte block used by eAthena, containing a source
* and destination coordinate pair.
*/
- virtual void readCoordinatePair(uint16_t &srcX, uint16_t &srcY,
- uint16_t &dstX, uint16_t &dstY);
+ virtual void readCoordinatePair(uint16_t &restrict srcX,
+ uint16_t &restrict srcY,
+ uint16_t &restrict dstX,
+ uint16_t &restrict dstY);
/**
* Skips a given number of bytes.