From d48736c12aa260ec9842168a7597604a5c0a1a91 Mon Sep 17 00:00:00 2001 From: Future Date: Sat, 4 May 2024 10:34:02 +0200 Subject: [PATCH] fix: actually allow MAX_SERVERS_PER_GAME --- src/services/elimination_handler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/elimination_handler.cpp b/src/services/elimination_handler.cpp index b0f8bb4..22c3109 100644 --- a/src/services/elimination_handler.cpp +++ b/src/services/elimination_handler.cpp @@ -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();