From: Mario Date: Sun, 16 Jul 2017 16:39:25 +0000 (+1000) Subject: Don't try to draw only personal time if next best is invalid X-Git-Tag: xonotic-v0.8.5~2595 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f3de162f7ad4fa3cdc6dda9e58eb6309188e12fc;p=xonotic%2Fxonotic-data.pk3dir.git Don't try to draw only personal time if next best is invalid --- diff --git a/qcsrc/client/hud/panel/racetimer.qc b/qcsrc/client/hud/panel/racetimer.qc index 7ad7f943d..c091fa712 100644 --- a/qcsrc/client/hud/panel/racetimer.qc +++ b/qcsrc/client/hud/panel/racetimer.qc @@ -179,11 +179,6 @@ void HUD_RaceTimer () float a2 = bound(0, 2 - ((race_laptime + TIME_DECODE(race_mybesttime)) - (time + TIME_DECODE(race_penaltyaccumulator))), 1); if(a > 0) // next one? s = MakeRaceString(race_nextcheckpoint, (time + TIME_DECODE(race_penaltyaccumulator)) - race_laptime, TIME_DECODE(race_nextbesttime), ((a2 > 0) ? TIME_DECODE(race_mybesttime) : 0), 0, race_nextbestname); - else if(a2 > 0) - { - a = a2; - s = MakeRaceString(race_nextcheckpoint, (time + TIME_DECODE(race_penaltyaccumulator)) - race_laptime, TIME_DECODE(race_mybesttime), 0, 0, ""); - } } } }