diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-07-14 22:44:37 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-07-14 22:44:37 +0300 |
commit | e1841e31c606f1d97ea54c3f00f3380db814f3d2 (patch) | |
tree | fa9c9b178fe5ba9ca931e67332aef016efa95145 /src/net/ea/itemhandler.cpp | |
parent | 72938b640199d03d6092366224d3927d5d2a33b9 (diff) | |
download | plus-e1841e31c606f1d97ea54c3f00f3380db814f3d2.tar.gz plus-e1841e31c606f1d97ea54c3f00f3380db814f3d2.tar.bz2 plus-e1841e31c606f1d97ea54c3f00f3380db814f3d2.tar.xz plus-e1841e31c606f1d97ea54c3f00f3380db814f3d2.zip |
Rename readInt8 into readUInt8 because it really read uint8_t.
Diffstat (limited to 'src/net/ea/itemhandler.cpp')
-rw-r--r-- | src/net/ea/itemhandler.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
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<int>(msg.readUInt8()); + const int subY = static_cast<int>(msg.readUInt8()); const int amount = msg.readInt16(); if (actorManager) |