From b3ce0c32c6918eb7b3f50c8a1c0e57a6522bce82 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 20 Jun 2015 20:05:12 +0300 Subject: Fix compilation warnings. --- src/net/tmwa/beinghandler.cpp | 24 +++--------------------- 1 file changed, 3 insertions(+), 21 deletions(-) (limited to 'src/net/tmwa/beinghandler.cpp') 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"); -- cgit v1.2.3-70-g09d2