]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix map sizes not actually listening to the count bots setting
authorMario <mario@smbclan.net>
Mon, 2 Sep 2019 06:46:24 +0000 (16:46 +1000)
committerMario <mario@smbclan.net>
Mon, 2 Sep 2019 06:46:24 +0000 (16:46 +1000)
qcsrc/server/g_world.qc

index de94702f68090a1fde04bbc1d9bcf80f1acab661..36ca8b2677c6ad84b437e784ce33cc4ad8c0fe41 100644 (file)
@@ -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;