From f74de2c2762999be3c2c37749313746a9ae948c3 Mon Sep 17 00:00:00 2001 From: Fedja Beader Date: Tue, 23 Apr 2024 20:53:01 +0200 Subject: Correct ommision of 0 in hexadecimal format spec --- src/net/tmwa/loginrecv.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3-70-g09d2