From b4fe1ad3fefeacb942754decab190f39e0233207 Mon Sep 17 00:00:00 2001 From: Mario Date: Mon, 2 Sep 2019 16:46:24 +1000 Subject: [PATCH] Fix map sizes not actually listening to the count bots setting --- qcsrc/server/g_world.qc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/qcsrc/server/g_world.qc b/qcsrc/server/g_world.qc index de94702f6..36ca8b267 100644 --- a/qcsrc/server/g_world.qc +++ b/qcsrc/server/g_world.qc @@ -293,8 +293,6 @@ void cvar_changes_init() BADCVAR("teamplay"); BADCVAR("timelimit"); BADCVAR("g_mapinfo_ignore_warnings"); - BADCVAR("g_maplist_ignore_sizes"); - BADCVAR("g_maplist_sizes_count_bots"); // long BADCVAR("hostname"); @@ -1060,12 +1058,12 @@ bool MapHasRightSize(string map) int mapmin = stoi(fgets(fh)); int mapmax = stoi(fgets(fh)); fclose(fh); - if(player_count < mapmin) + if(pcount < mapmin) { LOG_TRACE(opensize_msg, "not enough"); return false; } - if(mapmax && player_count > mapmax) + if(mapmax && pcount > mapmax) { LOG_TRACE(opensize_msg, "too many"); return false; -- 2.39.2