Update party.cpp

This commit is contained in:
quaK 2023-02-12 13:07:27 +02:00
parent 2fc702ec32
commit a958f23326

View File

@ -263,7 +263,7 @@ namespace party
int get_client_num_by_name(const std::string& name) int get_client_num_by_name(const std::string& name)
{ {
for (auto i = 0; !name.empty() && i < *game::svs_numclients; ++i) for (unsigned int i = 0; !name.empty() && i < *game::svs_numclients; ++i)
{ {
if (game::g_entities[i].client) if (game::g_entities[i].client)
{ {
@ -283,7 +283,7 @@ namespace party
int get_client_count() int get_client_count()
{ {
auto count = 0; auto count = 0;
for (auto i = 0; i < *game::svs_numclients; ++i) for (unsigned int i = 0; i < *game::svs_numclients; ++i)
{ {
if (game::svs_clients[i].header.state >= 1) if (game::svs_clients[i].header.state >= 1)
{ {
@ -297,7 +297,7 @@ namespace party
int get_bot_count() int get_bot_count()
{ {
auto count = 0; auto count = 0;
for (auto i = 0; i < *game::svs_numclients; ++i) for (unsigned int i = 0; i < *game::svs_numclients; ++i)
{ {
if (game::svs_clients[i].header.state >= 1 && if (game::svs_clients[i].header.state >= 1 &&
game::SV_BotIsBot(i)) game::SV_BotIsBot(i))