diff options
author | Michael Lutz <michi@icosahedron.de> | 2021-08-19 19:25:20 +0200 |
---|---|---|
committer | Michael Lutz <michi@icosahedron.de> | 2021-08-19 19:56:00 +0200 |
commit | fff09a4af28ea4984ca1188c69588e1ad8e938d2 (patch) | |
tree | 57d1e45cc40b42409d9b35321eb5210b6cbabc7a /src | |
parent | a7fe82c646dab1d418b31fab14fbb9785514a806 (diff) | |
download | openttd-fff09a4af28ea4984ca1188c69588e1ad8e938d2.tar.xz |
Fix d9c1d18f2: Wrong format string for console disconnect message.
Diffstat (limited to 'src')
-rw-r--r-- | src/network/network_server.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/network_server.cpp b/src/network/network_server.cpp index c506f60a4..d28b818bf 100644 --- a/src/network/network_server.cpp +++ b/src/network/network_server.cpp @@ -1660,9 +1660,9 @@ void NetworkServer_Tick(bool send_frame) /* Client did still not report in within the specified limit. */ IConsolePrint(CC_WARNING, cs->last_packet + std::chrono::milliseconds(lag * MILLISECONDS_PER_TICK) > std::chrono::steady_clock::now() ? /* A packet was received in the last three game days, so the client is likely lagging behind. */ - "Client #%u (IP: %s) is dropped because the client's game state is more than %d ticks behind." : + "Client #{} (IP: {}) is dropped because the client's game state is more than {} ticks behind." : /* No packet was received in the last three game days; sounds like a lost connection. */ - "Client #%u (IP: %s) is dropped because the client did not respond for more than %d ticks.", + "Client #{} (IP: {}) is dropped because the client did not respond for more than {} ticks.", cs->client_id, cs->GetClientIP(), lag); cs->SendError(NETWORK_ERROR_TIMEOUT_COMPUTER); continue; |