Fixed removebot never working

This commit is contained in:
smallmodel 2023-08-20 02:23:49 +02:00
parent b68992e55e
commit 11fb5ee2af
No known key found for this signature in database
GPG key ID: A96F163ED4891440

View file

@ -668,7 +668,7 @@ qboolean G_RemoveBotCommand
}
numbots = atoi(gi.Argv(1));
totalnumbots = Q_min(numbots, sv_numbots->integer);
totalnumbots = sv_numbots->integer - Q_min(numbots, sv_numbots->integer);
gi.cvar_set("sv_numbots", va("%d", totalnumbots));
return qtrue;