diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-05-30 00:50:00 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-05-30 00:50:00 +0300 |
commit | a3f8e297c74534ceba6063e10cdeee558b215d6d (patch) | |
tree | 919c4cc0a7bd78fb4d6c8dda03a35e13f3b67532 /src/net/ea/beinghandler.cpp | |
parent | 82f54003e520947340823e8d86dcb8c57e182237 (diff) | |
download | mv-a3f8e297c74534ceba6063e10cdeee558b215d6d.tar.gz mv-a3f8e297c74534ceba6063e10cdeee558b215d6d.tar.bz2 mv-a3f8e297c74534ceba6063e10cdeee558b215d6d.tar.xz mv-a3f8e297c74534ceba6063e10cdeee558b215d6d.zip |
Limit hair color and hair style only for one byte.
Other bytes reserved for future usage.
Diffstat (limited to 'src/net/ea/beinghandler.cpp')
-rw-r--r-- | src/net/ea/beinghandler.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/net/ea/beinghandler.cpp b/src/net/ea/beinghandler.cpp index 71194520d..05b7c348a 100644 --- a/src/net/ea/beinghandler.cpp +++ b/src/net/ea/beinghandler.cpp @@ -200,7 +200,8 @@ void BeingHandler::processBeingVisibleOrMove(Net::MessageIn &msg, if (dstBeing->getType() == ActorSprite::MONSTER && player_node) player_node->checkNewName(dstBeing); - const int hairStyle = msg.readInt16(); + const int hairStyle = msg.readInt8(); + msg.readInt8(); // free const uint16_t weapon = msg.readInt16(); const uint16_t headBottom = msg.readInt16(); @@ -210,7 +211,8 @@ void BeingHandler::processBeingVisibleOrMove(Net::MessageIn &msg, const uint16_t shield = msg.readInt16(); 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 const uint16_t shoes = msg.readInt16(); // clothes color uint16_t gloves; |