fix: actually allow MAX_SERVERS_PER_GAME

This commit is contained in:
Future 2024-05-04 10:34:02 +02:00
parent f2dd8d5c38
commit d48736c12a
No known key found for this signature in database
GPG Key ID: FA77F074E98D98A5

View File

@ -35,7 +35,7 @@ void elimination_handler::run_frame()
}
++server_count[server.game][context.get_address().to_string(false)];
if (server_count[server.game][context.get_address().to_string(false)] >= MAX_SERVERS_PER_GAME)
if (server_count[server.game][context.get_address().to_string(false)] > MAX_SERVERS_PER_GAME)
{
console::log("Removing server '%s' because it exceeds MAX_SERVERS_PER_GAME", context.get_address().to_string().data());
context.remove();