re-arranging when to connect to ze2

This commit is contained in:
jenz 2025-06-06 22:53:57 +02:00
parent f5d8b6d584
commit 6b7b78f9f5

View File

@ -525,7 +525,7 @@ public Action bot_check_connect(Handle timer, any data)
send_socket_msg(msg, strlen(msg), ports[2]);
send_socket_msg(msg, strlen(msg), ports[3]);
}
else if (client_count < max_allowed_players)
else if (client_count < max_allowed_players - 5)
{
Format(msg, sizeof(msg), "connect to ze");
if (!bot1_connected)
@ -537,6 +537,14 @@ public Action bot_check_connect(Handle timer, any data)
if (!bot4_connected)
send_socket_msg(msg, strlen(msg), ports[3]);
}
else
{
Format(msg, sizeof(msg), "connect to ze2");
send_socket_msg(msg, strlen(msg), ports[0]);
send_socket_msg(msg, strlen(msg), ports[1]);
send_socket_msg(msg, strlen(msg), ports[2]);
send_socket_msg(msg, strlen(msg), ports[3]);
}
}
else
{