From 1f0f6d92adb369d767e9673d744c419e18cd6249 Mon Sep 17 00:00:00 2001 From: Mario Date: Mon, 17 Jul 2017 03:44:55 +1000 Subject: [PATCH] Disable showself by default and make personal time white --- qcsrc/client/autocvars.qh | 2 +- qcsrc/client/hud/panel/racetimer.qc | 2 +- qcsrc/server/race.qc | 12 +++++------- 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/qcsrc/client/autocvars.qh b/qcsrc/client/autocvars.qh index 34efcb4b10..4cfc5bbe0b 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 b6f3fb58f4..b107a40c03 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 1481c384da..df34375494 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( -- 2.39.2