From: Ant Zucaro Date: Fri, 1 Feb 2013 20:53:29 +0000 (-0500) Subject: Add race support to the scoreboard. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=048e0cfb55028186d31d67e361002467ef943981;p=xonotic%2Fxonstat.git Add race support to the scoreboard. --- diff --git a/xonstat/templates/scoreboard.mako b/xonstat/templates/scoreboard.mako index 3bcf31f..e243305 100644 --- a/xonstat/templates/scoreboard.mako +++ b/xonstat/templates/scoreboard.mako @@ -225,6 +225,20 @@ ${scoreboard_header(game_type_cd, pgstats[0])} % endif +% if game_type_cd == 'rc': + + + Nick + % if show_latency: + Ping + % endif + Laps + Fastest Lap + Time + + +% endif + ##### SCOREBOARD ROWS ##### @@ -299,4 +313,10 @@ ${scoreboard_header(game_type_cd, pgstats[0])} ${pgstat.drops} % endif +% if game_type_cd == 'rc': + ${pgstat.laps} + ${round(float(pgstat.fastest.seconds) + (pgstat.fastest.microseconds/1000000.0), 2)} + ${round(float(pgstat.time.seconds) + (pgstat.time.microseconds/1000000.0), 2)} +% endif +