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/tmwa/loginhandler.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/net/tmwa/loginhandler.cpp') diff --git a/src/net/tmwa/loginhandler.cpp b/src/net/tmwa/loginhandler.cpp index b9a1e7365..4f589bbb9 100644 --- a/src/net/tmwa/loginhandler.cpp +++ b/src/net/tmwa/loginhandler.cpp @@ -187,16 +187,16 @@ void LoginHandler::requestUpdateHosts() void LoginHandler::processServerVersion(Net::MessageIn &msg) { - const uint8_t b1 = msg.readInt8(); // -1 - const uint8_t b2 = msg.readInt8(); // E - const uint8_t b3 = msg.readInt8(); // V - const uint8_t b4 = msg.readInt8(); // L + const uint8_t b1 = msg.readUInt8(); // -1 + const uint8_t b2 = msg.readUInt8(); // E + const uint8_t b3 = msg.readUInt8(); // V + const uint8_t b4 = msg.readUInt8(); // L if (b1 == 255 && b2 == 'E' && b3 == 'V' && b4 == 'L') { - const unsigned int options = msg.readInt8(); + const unsigned int options = msg.readUInt8(); mRegistrationEnabled = options & FLAG_REGISTRATION; msg.skip(2); // 0 unused - serverVersion = msg.readInt8(); + serverVersion = msg.readUInt8(); tmwServerVersion = 0; if (serverVersion >= 5) requestUpdateHosts(); -- cgit v1.2.3-70-g09d2