From ccbb8e411cb7fceff85524a8820441ab58cd8417 Mon Sep 17 00:00:00 2001 From: momo5502 Date: Sat, 18 Feb 2023 19:12:53 +0100 Subject: [PATCH] Cleanup dedicated info --- src/client/component/dedicated_info.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/client/component/dedicated_info.cpp b/src/client/component/dedicated_info.cpp index 4e49e93e..a15cf369 100644 --- a/src/client/component/dedicated_info.cpp +++ b/src/client/component/dedicated_info.cpp @@ -20,23 +20,23 @@ namespace dedicated_info if (!sv_running || !sv_running->current.enabled) { - std::string idle_text = server_name + " - not running"; - console::set_title(idle_text); + console::set_title(server_name + " - not running"); return; } const auto mapname = game::get_dvar_string("mapname"); - std::string window_text = utils::string::va("%s on %s [%d/%d] (%d)", - server_name.data(), - mapname.data(), - getinfo::get_client_count(), - getinfo::get_max_client_count(), - getinfo::get_bot_count()); + const std::string window_text = utils::string::va("%s on %s [%d/%d] (%d)", + server_name.data(), + mapname.data(), + getinfo::get_client_count(), + getinfo::get_max_client_count(), + getinfo::get_bot_count()); console::set_title(window_text); } } + class component final : public server_component { public: