X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fclient%2Fhud%2Fpanel%2Ftimer.qc;h=0dcbb70dba3cfe067d51160d74b2c26d8be70196;hb=e87123e5fba23f7a8907e6fbab241c5eec5be168;hp=85341b4313f8012b3a546e9d96fe229d64c2d0d2;hpb=d1179864ddf7821d800884ce58b57d206f68f761;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/client/hud/panel/timer.qc b/qcsrc/client/hud/panel/timer.qc index 85341b431..0dcbb70db 100644 --- a/qcsrc/client/hud/panel/timer.qc +++ b/qcsrc/client/hud/panel/timer.qc @@ -1,5 +1,9 @@ #include "timer.qh" +#include +#include +#include + // Timer (#5) void HUD_Timer() @@ -9,7 +13,7 @@ void HUD_Timer() if(!autocvar_hud_panel_timer) return; } - HUD_Panel_UpdateCvars(1); + HUD_Panel_LoadCvars(); draw_beginBoldFont(); @@ -50,15 +54,15 @@ void HUD_Timer() } vector timer_color; - if(gameover_time || minutesLeft >= 5 || warmup_stage || timelimit == 0) + if(intermission_time || minutesLeft >= 5 || warmup_stage || timelimit == 0) timer_color = '1 1 1'; //white else if(minutesLeft >= 1) timer_color = '1 1 0'; //yellow else timer_color = '1 0 0'; //red - if (gameover_time) { - timer = seconds_tostring(max(0, floor(gameover_time - STAT(GAMESTARTTIME)))); + if (intermission_time) { + timer = seconds_tostring(max(0, floor(intermission_time - STAT(GAMESTARTTIME)))); } else if (autocvar_hud_panel_timer_increment || (!warmup_stage && timelimit == 0) || (warmup_stage && warmup_timeleft <= 0)) { if (time < STAT(GAMESTARTTIME)) timer = seconds_tostring(0); //while restart is still active, show 00:00