From: Mario Date: Sun, 16 Jul 2017 17:44:55 +0000 (+1000) Subject: Disable showself by default and make personal time white X-Git-Tag: xonotic-v0.8.5~2593 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=1f0f6d92adb369d767e9673d744c419e18cd6249;p=xonotic%2Fxonotic-data.pk3dir.git Disable showself by default and make personal time white --- diff --git a/qcsrc/client/autocvars.qh b/qcsrc/client/autocvars.qh index 34efcb4b1..4cfc5bbe0 100644 --- a/qcsrc/client/autocvars.qh +++ b/qcsrc/client/autocvars.qh @@ -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; diff --git a/qcsrc/client/hud/panel/racetimer.qc b/qcsrc/client/hud/panel/racetimer.qc index b6f3fb58f..b107a40c0 100644 --- a/qcsrc/client/hud/panel/racetimer.qc +++ b/qcsrc/client/hud/panel/racetimer.qc @@ -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) diff --git a/qcsrc/server/race.qc b/qcsrc/server/race.qc index 1481c384d..df3437549 100644 --- a/qcsrc/server/race.qc +++ b/qcsrc/server/race.qc @@ -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(