]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/race.qc
lol i had forgotten the mutators/gamemode_freezetag.qc file itself :X
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / race.qc
index faeaba930073cb9cc36bcf6f764b015369de6f9f..3786edbe5137d25c431da79d37036f9ea7b97361 100644 (file)
@@ -169,20 +169,9 @@ void race_setTime(string map, float t, string myuid, string mynetname, entity e)
 
        oldrec = race_readTime(GetMapname(), newpos);
        oldrec_holder = race_readName(GetMapname(), newpos);
-
-       // move other rankings out of the way
-       if (player_prevpos) { // player improved his existing record, only have to iterate on ranks between new and old recs
-               for (i = player_prevpos; i > newpos; --i) {
-                       race_writeTime(GetMapname(), race_readTime(GetMapname(), i-1), race_readUID(GetMapname(), i-1), i);
-               }
-       } else { // player has no ranked record yet
-               for (i = RANKINGS_CNT; i > newpos; --i) {
-                       race_writeTime(GetMapname(), race_readTime(GetMapname(), i-1), race_readUID(GetMapname(), i-1), i);
-               }
-       }
        
        // store new ranking
-       race_writeTime(GetMapname(), t, myuid, 0); // 0 = autodetect pos
+       race_writeTime(GetMapname(), t, myuid);
 
        if (newpos == 1) {
                write_recordmarker(e, time - TIME_DECODE(t), TIME_DECODE(t));