diff options
author | Fedja Beader <fedja@protonmail.ch> | 2024-04-23 20:53:01 +0200 |
---|---|---|
committer | Fedja Beader <fedja@protonmail.ch> | 2024-04-27 20:13:59 +0200 |
commit | f74de2c2762999be3c2c37749313746a9ae948c3 (patch) | |
tree | fb0ad40237978f4110038ff3630ea04363dbf22c | |
parent | c831c69d9f50bf418295834ae83e9eb400dfc6b7 (diff) | |
download | manaverse-f74de2c2762999be3c2c37749313746a9ae948c3.tar.gz manaverse-f74de2c2762999be3c2c37749313746a9ae948c3.tar.bz2 manaverse-f74de2c2762999be3c2c37749313746a9ae948c3.tar.xz manaverse-f74de2c2762999be3c2c37749313746a9ae948c3.zip |
Correct ommision of 0 in hexadecimal format spec
-rw-r--r-- | src/net/tmwa/loginrecv.cpp | 4 |
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) |