From c0c597049ee837dd903a6c44436125788eb7ef3a Mon Sep 17 00:00:00 2001 From: FruitieX Date: Wed, 14 Jul 2010 20:22:03 +0300 Subject: [PATCH] use already existing, proved to work functions instead of creating own ones and watch the race timer magically start working again! --- qcsrc/client/hud.qc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/qcsrc/client/hud.qc b/qcsrc/client/hud.qc index 27484c52d7..96d5a3362b 100644 --- a/qcsrc/client/hud.qc +++ b/qcsrc/client/hud.qc @@ -3227,15 +3227,13 @@ void HUD_Score(void) pl = world; score = me.(scores[ps_primary]); - timer = seconds_tostring(score/TIME_FACTOR); - timer = strcat(timer, ":", ftos_decimals(mod(score, TIME_FACTOR), log(TIME_FACTOR))); + timer = TIME_ENCODED_TOSTRING(score); if (pl && ((!(scores_flags[ps_primary] & SFL_ZERO_IS_WORST)) || score)) { // distribution display distribution = me.(scores[ps_primary]) - pl.(scores[ps_primary]); - distrtimer = seconds_tostring(distribution/TIME_FACTOR); - distrtimer = strcat(timer, ":", ftos_decimals(mod(distribution, TIME_FACTOR), log(TIME_FACTOR))); + distrtimer = ftos(distribution/pow(10, TIME_DECIMALS)); if (distribution <= 0) { distribution_color = '0 1 0'; -- 2.39.2