summaryrefslogtreecommitdiff
path: root/src/net/ea/itemhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-07-15 01:06:00 +0300
committerAndrei Karas <akaras@inbox.ru>2014-07-15 01:06:00 +0300
commit553ca65f60d72a12f1a579dc3948568d684ac950 (patch)
treeccf0e7b20ac1a76cde56a2a28fc269e5724131e4 /src/net/ea/itemhandler.cpp
parent84e2a85c11eadd62572539d429c1de1d67223fae (diff)
downloadmanaplus-553ca65f60d72a12f1a579dc3948568d684ac950.tar.gz
manaplus-553ca65f60d72a12f1a579dc3948568d684ac950.tar.bz2
manaplus-553ca65f60d72a12f1a579dc3948568d684ac950.tar.xz
manaplus-553ca65f60d72a12f1a579dc3948568d684ac950.zip
Add net function readInt8 and use it for item pixel offset.
Diffstat (limited to 'src/net/ea/itemhandler.cpp')
-rw-r--r--src/net/ea/itemhandler.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/net/ea/itemhandler.cpp b/src/net/ea/itemhandler.cpp
index 8719c6256..e5ed730a0 100644
--- a/src/net/ea/itemhandler.cpp
+++ b/src/net/ea/itemhandler.cpp
@@ -47,8 +47,8 @@ void ItemHandler::processItemVisible(Net::MessageIn &msg)
const int x = msg.readInt16();
const int y = msg.readInt16();
const int amount = msg.readInt16();
- const int subX = msg.readUInt8();
- const int subY = msg.readUInt8();
+ const int subX = static_cast<int>(msg.readInt8());
+ const int subY = static_cast<int>(msg.readInt8());
if (actorManager)
{
@@ -64,8 +64,8 @@ void ItemHandler::processItemDropped(Net::MessageIn &msg)
const uint8_t identify = msg.readUInt8(); // identify flag
const int x = msg.readInt16();
const int y = msg.readInt16();
- const int subX = static_cast<int>(msg.readUInt8());
- const int subY = static_cast<int>(msg.readUInt8());
+ const int subX = static_cast<int>(msg.readInt8());
+ const int subY = static_cast<int>(msg.readInt8());
const int amount = msg.readInt16();
if (actorManager)