From: terencehill Date: Tue, 8 Mar 2022 20:40:07 +0000 (+0100) Subject: Make the timer turn red at 1:00, not 0:59 seconds remaining X-Git-Tag: xonotic-v0.8.5~167 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c3e13a33754d32529060e5e202a0e760459d65b7;p=xonotic%2Fxonotic-data.pk3dir.git Make the timer turn red at 1:00, not 0:59 seconds remaining --- diff --git a/qcsrc/client/hud/panel/timer.qc b/qcsrc/client/hud/panel/timer.qc index 034ae3802..cdf635f22 100644 --- a/qcsrc/client/hud/panel/timer.qc +++ b/qcsrc/client/hud/panel/timer.qc @@ -12,12 +12,12 @@ void HUD_Timer_Export(int fh) vector HUD_Timer_Color(float timeleft) { - if(timeleft >= 300) - return '1 1 1'; //white - else if(timeleft >= 60) - return '1 1 0'; //yellow + if(timeleft <= 60) + return '1 0 0'; // red + else if(timeleft <= 300) + return '1 1 0'; // yellow else - return '1 0 0'; //red + return '1 1 1'; // white } float HUD_Timer_TimeElapsed(float curtime, float starttime)