From 873ce0ce484b4e5715bd38bd02375a35bcb5097e Mon Sep 17 00:00:00 2001 From: jeefo Date: Sun, 11 Jun 2023 12:55:35 +0300 Subject: [PATCH] engine: server: query: A2S_PLAYER response should contain bots and normal players --- engine/server/sv_query.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/engine/server/sv_query.c b/engine/server/sv_query.c index 84b5cb17..7c3c7e0a 100644 --- a/engine/server/sv_query.c +++ b/engine/server/sv_query.c @@ -125,9 +125,10 @@ void SV_SourceQuery_Players( netadr_t from ) { sizebuf_t buf; char answer[1024 * 8]; - int i, client_count, bot_count_unused; + int i, client_count, bot_count; - SV_GetPlayerCount( &client_count, &bot_count_unused ); + SV_GetPlayerCount( &client_count, &bot_count ); + client_count += bot_count; // bots are counted as players in this reply if( client_count <= 0 ) return;