engine: server: query: A2S_PLAYER response should contain bots and normal players
This commit is contained in:
parent
450f77443d
commit
873ce0ce48
1 changed files with 3 additions and 2 deletions
|
@ -125,9 +125,10 @@ void SV_SourceQuery_Players( netadr_t from )
|
||||||
{
|
{
|
||||||
sizebuf_t buf;
|
sizebuf_t buf;
|
||||||
char answer[1024 * 8];
|
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 )
|
if( client_count <= 0 )
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Reference in a new issue