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/loginhandler.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/loginhandler.cpp')
-rw-r--r-- | src/net/ea/loginhandler.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/net/ea/loginhandler.cpp b/src/net/ea/loginhandler.cpp index 451850430..ece10c725 100644 --- a/src/net/ea/loginhandler.cpp +++ b/src/net/ea/loginhandler.cpp @@ -136,7 +136,7 @@ void LoginHandler::clearWorlds() void LoginHandler::procecessCharPasswordResponse(Net::MessageIn &msg) const { // 0: acc not found, 1: success, 2: password mismatch, 3: pass too short - const int errMsg = msg.readInt8(); + const uint8_t errMsg = msg.readUInt8(); // Successful pass change if (errMsg == 1) { @@ -203,7 +203,8 @@ void LoginHandler::processLoginData(Net::MessageIn &msg) // msg.skip(30); // unknown // reserve bits for future usage - mToken.sex = Being::intToGender(static_cast<uint8_t>(msg.readInt8() & 3)); + mToken.sex = Being::intToGender(static_cast<uint8_t>( + msg.readUInt8() & 3U)); for (int i = 0; i < worldCount; i++) { @@ -228,8 +229,8 @@ void LoginHandler::processLoginData(Net::MessageIn &msg) void LoginHandler::processLoginError(Net::MessageIn &msg) const { - const int code = msg.readInt8(); - logger->log("Login::error code: %i", code); + const uint8_t code = msg.readUInt8(); + logger->log("Login::error code: %u", static_cast<unsigned int>(code)); switch (code) { |