summaryrefslogtreecommitdiff
path: root/src/net/tmwa/beinghandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-05-30 00:50:00 +0300
committerAndrei Karas <akaras@inbox.ru>2013-05-30 00:50:00 +0300
commita3f8e297c74534ceba6063e10cdeee558b215d6d (patch)
tree919c4cc0a7bd78fb4d6c8dda03a35e13f3b67532 /src/net/tmwa/beinghandler.cpp
parent82f54003e520947340823e8d86dcb8c57e182237 (diff)
downloadplus-a3f8e297c74534ceba6063e10cdeee558b215d6d.tar.gz
plus-a3f8e297c74534ceba6063e10cdeee558b215d6d.tar.bz2
plus-a3f8e297c74534ceba6063e10cdeee558b215d6d.tar.xz
plus-a3f8e297c74534ceba6063e10cdeee558b215d6d.zip
Limit hair color and hair style only for one byte.
Other bytes reserved for future usage.
Diffstat (limited to 'src/net/tmwa/beinghandler.cpp')
-rw-r--r--src/net/tmwa/beinghandler.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/net/tmwa/beinghandler.cpp b/src/net/tmwa/beinghandler.cpp
index 3ef060d96..738a81651 100644
--- a/src/net/tmwa/beinghandler.cpp
+++ b/src/net/tmwa/beinghandler.cpp
@@ -477,7 +477,8 @@ void BeingHandler::processPlayerMoveUpdate(Net::MessageIn &msg,
dstBeing->setWalkSpeed(Vector(speed, speed, 0));
dstBeing->setSubtype(job);
- const int hairStyle = msg.readInt16();
+ const int hairStyle = msg.readInt8();
+ msg.readInt8(); // free
const uint16_t weapon = msg.readInt16();
const uint16_t shield = msg.readInt16();
const uint16_t headBottom = msg.readInt16();
@@ -487,7 +488,8 @@ void BeingHandler::processPlayerMoveUpdate(Net::MessageIn &msg,
const uint16_t headTop = msg.readInt16();
const uint16_t headMid = msg.readInt16();
- const int hairColor = msg.readInt16();
+ const int hairColor = msg.readInt8();
+ msg.readInt8(); // free
unsigned char colors[9];
colors[0] = msg.readInt8();