From e86720535ea43884f1af7c48d811519ef2f1d928 Mon Sep 17 00:00:00 2001 From: Jari van der Kaap Date: Sat, 18 Feb 2023 22:07:45 +0100 Subject: [PATCH] feat: added bot count to getinfo --- src/client/component/getinfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/component/getinfo.cpp b/src/client/component/getinfo.cpp index c3bfe868..070a75c8 100644 --- a/src/client/component/getinfo.cpp +++ b/src/client/component/getinfo.cpp @@ -86,7 +86,7 @@ namespace getinfo info.set("mapname", game::get_dvar_string("mapname")); info.set("isPrivate", game::get_dvar_string("g_password").empty() ? "0" : "1"); info.set("clients", utils::string::va("%i", get_client_count())); - info.set("bots", utils::string::va("%i", /*get_bot_count()*/0)); + info.set("bots", utils::string::va("%i", get_bot_count())); info.set("sv_maxclients", utils::string::va("%i", get_max_client_count())); info.set("protocol", utils::string::va("%i", PROTOCOL)); info.set("playmode", utils::string::va("%i", game::Com_SessionMode_GetMode()));