]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Don't try to draw only personal time if next best is invalid
authorMario <mario@smbclan.net>
Sun, 16 Jul 2017 16:39:25 +0000 (02:39 +1000)
committerMario <mario@smbclan.net>
Sun, 16 Jul 2017 16:39:25 +0000 (02:39 +1000)
qcsrc/client/hud/panel/racetimer.qc

index 7ad7f943d1ddffa61352704813b1f774d9f83d53..c091fa712c46e26e1e7e172de4ca4909e7c4714a 100644 (file)
@@ -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, "");
-                                       }
                                }
                        }
                }