X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fclient%2Fhud%2Fpanel%2Fracetimer.qc;h=02b631b3000932cbd2ee69f812e5cc8446f2aed1;hb=7785114f6fb42a3a52c39413bf6e725607d338b2;hp=ca45f352fba6cf614b01bbf6e8df4683e0a0fb9d;hpb=6f4c7132e635c0150e3894f2f9958b361ce0c238;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/client/hud/panel/racetimer.qc b/qcsrc/client/hud/panel/racetimer.qc index ca45f352f..02b631b30 100644 --- a/qcsrc/client/hud/panel/racetimer.qc +++ b/qcsrc/client/hud/panel/racetimer.qc @@ -1,8 +1,13 @@ -/** Race timer (#8) */ +#include "racetimer.qh" + +#include + +// Race timer (#6) // return the string of the onscreen race timer string MakeRaceString(int cp, float mytime, float theirtime, float lapdelta, string theirname) { + TC(int, cp); string col; string timestr; string cpname; @@ -78,13 +83,17 @@ void HUD_RaceTimer () if(spectatee_status == -1) return; } - HUD_Panel_UpdateCvars(); + HUD_Panel_LoadCvars(); vector pos, mySize; pos = panel_pos; mySize = panel_size; - HUD_Panel_DrawBg(1); + if (autocvar_hud_panel_racetimer_dynamichud) + HUD_Scale_Enable(); + else + HUD_Scale_Disable(); + HUD_Panel_DrawBg(); if(panel_bg_padding) { pos += '1 1 0' * panel_bg_padding;