diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-06-20 20:05:12 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-06-20 20:05:12 +0300 |
commit | b3ce0c32c6918eb7b3f50c8a1c0e57a6522bce82 (patch) | |
tree | 3071b6aec1de4df41f9159e7b27d9d1f42d5ba28 /src/net/tmwa/beinghandler.cpp | |
parent | d50ef0a41191beb164e9dddc87f6ffadea5b5cc8 (diff) | |
download | manaverse-b3ce0c32c6918eb7b3f50c8a1c0e57a6522bce82.tar.gz manaverse-b3ce0c32c6918eb7b3f50c8a1c0e57a6522bce82.tar.bz2 manaverse-b3ce0c32c6918eb7b3f50c8a1c0e57a6522bce82.tar.xz manaverse-b3ce0c32c6918eb7b3f50c8a1c0e57a6522bce82.zip |
Fix compilation warnings.
Diffstat (limited to 'src/net/tmwa/beinghandler.cpp')
-rw-r--r-- | src/net/tmwa/beinghandler.cpp | 24 |
1 files changed, 3 insertions, 21 deletions
diff --git a/src/net/tmwa/beinghandler.cpp b/src/net/tmwa/beinghandler.cpp index f5ebfd2f7..28c91fd28 100644 --- a/src/net/tmwa/beinghandler.cpp +++ b/src/net/tmwa/beinghandler.cpp @@ -483,13 +483,7 @@ void BeingHandler::processPlayerUpdate1(Net::MessageIn &msg) const uint16_t headMid = msg.readInt16("head mid"); const uint8_t hairColor = msg.readUInt8("hair color"); msg.readUInt8("unused"); - - uint8_t colors[9]; - colors[0] = msg.readUInt8("color 0"); - colors[1] = msg.readUInt8("color 1"); - colors[2] = msg.readUInt8("color 2"); - - msg.readUInt8("unused"); + msg.readInt32("unused"); const int guild = msg.readInt32("guild"); @@ -623,13 +617,7 @@ void BeingHandler::processPlayerUpdate2(Net::MessageIn &msg) const uint16_t headMid = msg.readInt16("head mid"); const uint8_t hairColor = msg.readUInt8("hair color"); msg.readUInt8("unused"); - - uint8_t colors[9]; - colors[0] = msg.readUInt8("color 0"); - colors[1] = msg.readUInt8("color 1"); - colors[2] = msg.readUInt8("color 2"); - - msg.readUInt8("unused"); + msg.readInt32("unused"); const int guild = msg.readInt32("guild"); @@ -763,13 +751,7 @@ void BeingHandler::processPlayerMove(Net::MessageIn &msg) const uint16_t headMid = msg.readInt16("head mid"); const uint8_t hairColor = msg.readUInt8("hair color"); msg.readUInt8("unused"); - - uint8_t colors[9]; - colors[0] = msg.readUInt8("color 0"); - colors[1] = msg.readUInt8("color 1"); - colors[2] = msg.readUInt8("color 2"); - - msg.readUInt8("unused"); + msg.readInt32("unused"); const int guild = msg.readInt32("guild"); |