X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fclient%2Fhud%2Fpanel%2Fracetimer.qc;h=0703c4f2dcb9eaecd29a70f49213f091f08591d3;hb=6ae488fa94396ad9ffa0dc3dbfbedb54c8b7983a;hp=281b2377ff10e839439cd83f002a5ef6ebf93130;hpb=be37ea91fb3bbd1a6fa4f0b70b32d1ea95343ad4;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/client/hud/panel/racetimer.qc b/qcsrc/client/hud/panel/racetimer.qc index 281b2377f..0703c4f2d 100644 --- a/qcsrc/client/hud/panel/racetimer.qc +++ b/qcsrc/client/hud/panel/racetimer.qc @@ -1,11 +1,15 @@ #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 +102,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; }