summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFedja Beader <fedja@protonmail.ch>2024-04-23 20:53:01 +0200
committerFedja Beader <fedja@protonmail.ch>2024-04-27 20:13:59 +0200
commitf74de2c2762999be3c2c37749313746a9ae948c3 (patch)
treefb0ad40237978f4110038ff3630ea04363dbf22c
parentc831c69d9f50bf418295834ae83e9eb400dfc6b7 (diff)
downloadplus-f74de2c2762999be3c2c37749313746a9ae948c3.tar.gz
plus-f74de2c2762999be3c2c37749313746a9ae948c3.tar.bz2
plus-f74de2c2762999be3c2c37749313746a9ae948c3.tar.xz
plus-f74de2c2762999be3c2c37749313746a9ae948c3.zip
Correct ommision of 0 in hexadecimal format spec
-rw-r--r--src/net/tmwa/loginrecv.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/net/tmwa/loginrecv.cpp b/src/net/tmwa/loginrecv.cpp
index a11888b9d..25341889a 100644
--- a/src/net/tmwa/loginrecv.cpp
+++ b/src/net/tmwa/loginrecv.cpp
@@ -86,10 +86,12 @@ void LoginRecv::processServerVersion(Net::MessageIn &msg)
serverVersion = 0;
tmwServerVersion = 0;
}
+
if (tmwServerVersion > 0)
- logger->log("Tmw server version: x%06x", tmwServerVersion);
+ logger->log("TMW server version: 0x%06x", tmwServerVersion);
else
logger->log("Server without version");
+
updateProtocol();
if (client->getState() != State::LOGIN)