]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Disable showself by default and make personal time white
authorMario <mario@smbclan.net>
Sun, 16 Jul 2017 17:44:55 +0000 (03:44 +1000)
committerMario <mario@smbclan.net>
Sun, 16 Jul 2017 17:44:55 +0000 (03:44 +1000)
qcsrc/client/autocvars.qh
qcsrc/client/hud/panel/racetimer.qc
qcsrc/server/race.qc

index 34efcb4b1035ed5bd868f94581724aab226a19e9..4cfc5bbe0b96851cba15ef732a9ee88dfe846dbf 100644 (file)
@@ -446,4 +446,4 @@ bool autocvar_cl_showspectators;
 int autocvar_cl_nade_timer;
 bool autocvar_r_drawviewmodel;
 bool autocvar_cl_race_cptimes_onlyself;
-bool autocvar_cl_race_cptimes_showself = true;
+bool autocvar_cl_race_cptimes_showself = false;
index b6f3fb58f40c4c869c95c11f9515b604a2c013e0..b107a40c0378b95c62ea046030e6dc03d99209d9 100644 (file)
@@ -68,7 +68,7 @@ string MakeRaceString(int cp, float mytime, float theirtime, float othertime, fl
                        othertimestr = strcat("+", ftos_decimals(mytime - othertime, TIME_DECIMALS));
                else
                        othertimestr = TIME_ENCODED_TOSTRING(TIME_ENCODE(othertime));
-               othercol = "^3";
+               othercol = "^7";
        }
 
        if(cp == 254)
index 1481c384da6bbd8b397b1653b19800ccabca3bd9..df343754943a6275b5109fbd11f50a2653620b72 100644 (file)
@@ -1072,14 +1072,12 @@ spawnfunc(info_player_race)
 
 void race_ClearRecords()
 {
-       float i;
-
-       for(i = 0; i < MAX_CHECKPOINTS; ++i)
+       for(int j = 0; j < MAX_CHECKPOINTS; ++j)
        {
-               race_checkpoint_records[i] = 0;
-               if(race_checkpoint_recordholders[i])
-                       strunzone(race_checkpoint_recordholders[i]);
-               race_checkpoint_recordholders[i] = string_null;
+               race_checkpoint_records[j] = 0;
+               if(race_checkpoint_recordholders[j])
+                       strunzone(race_checkpoint_recordholders[j]);
+               race_checkpoint_recordholders[j] = string_null;
        }
 
        FOREACH_CLIENT(true, LAMBDA(