]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/mutators/mutator/gamemode_ctf.qc
Store 99 time records in the server database. Send g_cts_send_rankings_cnt records...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / mutators / mutator / gamemode_ctf.qc
index e0d25e9e8f494c829c8fbf3156f15c92f168cddf..1847473cf9f57eb51fd768d94ac072fe242e8c56 100644 (file)
@@ -2228,7 +2228,9 @@ MUTATOR_HOOKFUNCTION(ctf, ClientConnect)
 
        if(IS_REAL_CLIENT(player))
        {
-               for(int i = 1; i <= RANKINGS_CNT; ++i)
+               int m = min(RANKINGS_CNT, autocvar_g_cts_send_rankings_cnt);
+               race_send_rankings_cnt(MSG_ONE);
+               for (int i = 1; i <= m; ++i)
                {
                        race_SendRankings(i, 0, 0, MSG_ONE);
                }