From: FruitieX Date: Wed, 14 Jul 2010 17:22:03 +0000 (+0300) Subject: use already existing, proved to work functions instead of creating own ones and watch... X-Git-Tag: xonotic-v0.1.0preview~362^2~44^2 X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=commitdiff_plain;h=c0c597049ee837dd903a6c44436125788eb7ef3a use already existing, proved to work functions instead of creating own ones and watch the race timer magically start working again! --- 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';