From: Jan "Yenya" Kasprzak Date: Sun, 8 May 2011 20:12:40 +0000 (+0200) Subject: Time difference prefix + instead of - X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?p=slotcarman.git;a=commitdiff_plain;h=c54ae2a857087ca405826081955dcdef81abc7bb Time difference prefix + instead of - The driver which is behind the leader has bigger time, so the difference should be annotated as e.g. "+0.15" or "+2 laps" instead of -. --- diff --git a/SCX/GUI.pm b/SCX/GUI.pm index 41e9112..af9f769 100755 --- a/SCX/GUI.pm +++ b/SCX/GUI.pm @@ -273,9 +273,9 @@ sub set_distance { if (defined $time) { $text = format_race_time($time); } elsif (defined $time_diff) { - $text = '−' . format_lap_time($time_diff); + $text = '+' . format_lap_time($time_diff); } elsif (defined $lap_diff) { - $text = '−' . $lap_diff + $text = '+' . $lap_diff . ($lap_diff == 1 ? ' lap' : ' laps'); }