From c9586f964997fbd059882ada731cc34ab7fda412 Mon Sep 17 00:00:00 2001 From: momo5502 Date: Sun, 14 May 2023 09:13:44 +0200 Subject: [PATCH] Small cleanup --- src/client/component/status.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/client/component/status.cpp b/src/client/component/status.cpp index a9e3380f..2fd8bfab 100644 --- a/src/client/component/status.cpp +++ b/src/client/component/status.cpp @@ -8,17 +8,17 @@ namespace status { namespace { - thread_local int client_num_; + thread_local int g_client_num{0}; - void print_client_num(int channel, int label, const char* fmt, const int client_num) + void print_client_num(const int channel, const int label, const char* fmt, const int client_num) { - client_num_ = client_num; + g_client_num = client_num; game::Com_Printf(channel, label, fmt, client_num); } - void print_client_xuid(int channel, int label, [[maybe_unused]] const char* fmt, const uint64_t xuid) + void print_client_xuid(const int channel, const int label, [[maybe_unused]] const char* fmt, const uint64_t xuid) { - if (game::SV_IsTestClient(client_num_)) + if (game::SV_IsTestClient(g_client_num)) { game::Com_Printf(channel, label, "%16s ", "bot0"); return;