diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-10-18 02:24:46 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-10-18 02:24:46 +0300 |
commit | 236706b8432ac16534cb4d8d426a5b526b9e660b (patch) | |
tree | 25909ead66e8c73612cb4fbe09b024474b279964 /src/net | |
parent | e93e6beb456d105987da3190c2a80847b6900081 (diff) | |
download | mv-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.
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/tmwa/messageout.h | 3 |
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); |