]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Don't send rankings when a bot connects
authorMario <mario.mario@y7mail.com>
Sun, 9 Mar 2014 21:19:47 +0000 (08:19 +1100)
committerMario <mario.mario@y7mail.com>
Sun, 9 Mar 2014 21:19:47 +0000 (08:19 +1100)
qcsrc/server/mutators/gamemode_cts.qc

index ab20b0b68b7840d372772e82ee7258226e545dea..6bbd70dabfa9d6fd6bc8ce81e6a59146cab8ddda 100644 (file)
@@ -154,6 +154,7 @@ MUTATOR_HOOKFUNCTION(cts_ClientConnect)
        race_send_speedaward_alltimebest(MSG_ONE);
 
        float i;
+       if(IS_REAL_CLIENT(self))
        for (i = 1; i <= RANKINGS_CNT; ++i)
        {
                race_SendRankings(i, 0, 0, MSG_ONE);