From e1841e31c606f1d97ea54c3f00f3380db814f3d2 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 14 Jul 2014 22:44:37 +0300 Subject: Rename readInt8 into readUInt8 because it really read uint8_t. --- src/net/ea/itemhandler.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/net/ea/itemhandler.cpp') diff --git a/src/net/ea/itemhandler.cpp b/src/net/ea/itemhandler.cpp index 383ba2753..8719c6256 100644 --- a/src/net/ea/itemhandler.cpp +++ b/src/net/ea/itemhandler.cpp @@ -43,12 +43,12 @@ void ItemHandler::processItemVisible(Net::MessageIn &msg) { const int id = msg.readInt32(); const int itemId = msg.readInt16(); - const unsigned char identify = msg.readInt8(); // identify flag + const uint8_t identify = msg.readUInt8(); // identify flag const int x = msg.readInt16(); const int y = msg.readInt16(); const int amount = msg.readInt16(); - const int subX = msg.readInt8(); - const int subY = msg.readInt8(); + const int subX = msg.readUInt8(); + const int subY = msg.readUInt8(); if (actorManager) { @@ -61,11 +61,11 @@ void ItemHandler::processItemDropped(Net::MessageIn &msg) { const int id = msg.readInt32(); const int itemId = msg.readInt16(); - const unsigned char identify = msg.readInt8(); // identify flag + const uint8_t identify = msg.readUInt8(); // identify flag const int x = msg.readInt16(); const int y = msg.readInt16(); - const int subX = msg.readInt8(); - const int subY = msg.readInt8(); + const int subX = static_cast(msg.readUInt8()); + const int subY = static_cast(msg.readUInt8()); const int amount = msg.readInt16(); if (actorManager) -- cgit v1.2.3-70-g09d2