summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-10-18 02:24:46 +0300
committerAndrei Karas <akaras@inbox.ru>2011-10-18 02:24:46 +0300
commit236706b8432ac16534cb4d8d426a5b526b9e660b (patch)
tree25909ead66e8c73612cb4fbe09b024474b279964
parente93e6beb456d105987da3190c2a80847b6900081 (diff)
downloadmv-236706b8432ac16534cb4d8d426a5b526b9e660b.tar.gz
mv-236706b8432ac16534cb4d8d426a5b526b9e660b.tar.bz2
mv-236706b8432ac16534cb4d8d426a5b526b9e660b.tar.xz
mv-236706b8432ac16534cb4d8d426a5b526b9e660b.zip
Add method to reset send buffer pointer in created MessageOut instance.
-rw-r--r--src/net/tmwa/messageout.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/net/tmwa/messageout.h b/src/net/tmwa/messageout.h
index da86f06f6..d97851d4a 100644
--- a/src/net/tmwa/messageout.h
+++ b/src/net/tmwa/messageout.h
@@ -56,6 +56,9 @@ class MessageOut : public Net::MessageOut
void writeCoordinates(unsigned short x, unsigned short y,
unsigned char direction);
+ void resetPos()
+ { mPos = 0; }
+
private:
void expand(size_t size);