summaryrefslogtreecommitdiff
path: root/src/net/ea/playerhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-07-14 22:44:37 +0300
committerAndrei Karas <akaras@inbox.ru>2014-07-14 22:44:37 +0300
commite1841e31c606f1d97ea54c3f00f3380db814f3d2 (patch)
treefa9c9b178fe5ba9ca931e67332aef016efa95145 /src/net/ea/playerhandler.cpp
parent72938b640199d03d6092366224d3927d5d2a33b9 (diff)
downloadmanaplus-e1841e31c606f1d97ea54c3f00f3380db814f3d2.tar.gz
manaplus-e1841e31c606f1d97ea54c3f00f3380db814f3d2.tar.bz2
manaplus-e1841e31c606f1d97ea54c3f00f3380db814f3d2.tar.xz
manaplus-e1841e31c606f1d97ea54c3f00f3380db814f3d2.zip
Rename readInt8 into readUInt8 because it really read uint8_t.
Diffstat (limited to 'src/net/ea/playerhandler.cpp')
-rw-r--r--src/net/ea/playerhandler.cpp52
1 files changed, 26 insertions, 26 deletions
diff --git a/src/net/ea/playerhandler.cpp b/src/net/ea/playerhandler.cpp
index 9e2a0dfb3..31e298fdc 100644
--- a/src/net/ea/playerhandler.cpp
+++ b/src/net/ea/playerhandler.cpp
@@ -442,8 +442,8 @@ void PlayerHandler::processPlayerStatUpdate4(Net::MessageIn &msg)
{
BLOCK_START("PlayerHandler::processPlayerStatUpdate4")
const int type = msg.readInt16();
- const int ok = msg.readInt8();
- const int value = msg.readInt8();
+ const uint8_t ok = msg.readUInt8();
+ const int value = msg.readUInt8();
if (ok != 1)
{
@@ -463,47 +463,47 @@ void PlayerHandler::processPlayerStatUpdate5(Net::MessageIn &msg)
BLOCK_START("PlayerHandler::processPlayerStatUpdate5")
PlayerInfo::setAttribute(Attributes::CHAR_POINTS, msg.readInt16());
- int val = msg.readInt8();
+ unsigned int val = msg.readUInt8();
PlayerInfo::setStatBase(EA_STR, val);
if (statusWindow)
- statusWindow->setPointsNeeded(EA_STR, msg.readInt8());
+ statusWindow->setPointsNeeded(EA_STR, msg.readUInt8());
else
- msg.readInt8();
+ msg.readUInt8();
- val = msg.readInt8();
+ val = msg.readUInt8();
PlayerInfo::setStatBase(EA_AGI, val);
if (statusWindow)
- statusWindow->setPointsNeeded(EA_AGI, msg.readInt8());
+ statusWindow->setPointsNeeded(EA_AGI, msg.readUInt8());
else
- msg.readInt8();
+ msg.readUInt8();
- val = msg.readInt8();
+ val = msg.readUInt8();
PlayerInfo::setStatBase(EA_VIT, val);
if (statusWindow)
- statusWindow->setPointsNeeded(EA_VIT, msg.readInt8());
+ statusWindow->setPointsNeeded(EA_VIT, msg.readUInt8());
else
- msg.readInt8();
+ msg.readUInt8();
- val = msg.readInt8();
+ val = msg.readUInt8();
PlayerInfo::setStatBase(EA_INT, val);
if (statusWindow)
- statusWindow->setPointsNeeded(EA_INT, msg.readInt8());
+ statusWindow->setPointsNeeded(EA_INT, msg.readUInt8());
else
- msg.readInt8();
+ msg.readUInt8();
- val = msg.readInt8();
+ val = msg.readUInt8();
PlayerInfo::setStatBase(EA_DEX, val);
if (statusWindow)
- statusWindow->setPointsNeeded(EA_DEX, msg.readInt8());
+ statusWindow->setPointsNeeded(EA_DEX, msg.readUInt8());
else
- msg.readInt8();
+ msg.readUInt8();
- val = msg.readInt8();
+ val = msg.readUInt8();
PlayerInfo::setStatBase(EA_LUK, val);
if (statusWindow)
- statusWindow->setPointsNeeded(EA_LUK, msg.readInt8());
+ statusWindow->setPointsNeeded(EA_LUK, msg.readUInt8());
else
- msg.readInt8();
+ msg.readUInt8();
PlayerInfo::setStatBase(EA_ATK, msg.readInt16(), false);
PlayerInfo::setStatMod(EA_ATK, msg.readInt16());
@@ -541,22 +541,22 @@ void PlayerHandler::processPlayerStatUpdate6(Net::MessageIn &msg)
switch (type)
{
case 0x0020:
- statusWindow->setPointsNeeded(EA_STR, msg.readInt8());
+ statusWindow->setPointsNeeded(EA_STR, msg.readUInt8());
break;
case 0x0021:
- statusWindow->setPointsNeeded(EA_AGI, msg.readInt8());
+ statusWindow->setPointsNeeded(EA_AGI, msg.readUInt8());
break;
case 0x0022:
- statusWindow->setPointsNeeded(EA_VIT, msg.readInt8());
+ statusWindow->setPointsNeeded(EA_VIT, msg.readUInt8());
break;
case 0x0023:
- statusWindow->setPointsNeeded(EA_INT, msg.readInt8());
+ statusWindow->setPointsNeeded(EA_INT, msg.readUInt8());
break;
case 0x0024:
- statusWindow->setPointsNeeded(EA_DEX, msg.readInt8());
+ statusWindow->setPointsNeeded(EA_DEX, msg.readUInt8());
break;
case 0x0025:
- statusWindow->setPointsNeeded(EA_LUK, msg.readInt8());
+ statusWindow->setPointsNeeded(EA_LUK, msg.readUInt8());
break;
default:
logger->log("QQQQ PLAYER_STAT_UPDATE_6 "