X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;ds=inline;f=qcsrc%2Fclient%2Fhud%2Fpanel%2Fracetimer.qc;h=7ecdf1a8216afd975b9f8054ac49fa8cf0d2c153;hb=1f1fa1320e2dc0234f853ae4dc29cc4d6c0d40f0;hp=281b2377ff10e839439cd83f002a5ef6ebf93130;hpb=991de5e6922cd3c283de56c3249624f0f1bfe767;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/client/hud/panel/racetimer.qc b/qcsrc/client/hud/panel/racetimer.qc index 281b2377f..7ecdf1a82 100644 --- a/qcsrc/client/hud/panel/racetimer.qc +++ b/qcsrc/client/hud/panel/racetimer.qc @@ -1,11 +1,13 @@ #include "racetimer.qh" -#include -#include -#include -#include +#include -// Race timer (#6) +// Race timer (#8) + +void HUD_RaceTimer_Export(int fh) +{ + // allow saving cvars that aesthetically change the panel into hud skin files +} // return the string of the onscreen race timer string MakeRaceString(int cp, float mytime, float theirtime, float othertime, float lapdelta, string theirname) @@ -98,7 +100,7 @@ void HUD_RaceTimer () if(!autocvar__hud_configure) { if(!autocvar_hud_panel_racetimer) return; - if(!(ISGAMETYPE(RACE) || ISGAMETYPE(CTS))) return; + if(!MUTATOR_CALLHOOK(ShowRaceTimer)) return; if(spectatee_status == -1) return; }