From fd28b0ef5c3aeecdec5ac0c57b184455b785d617 Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Sun, 5 Sep 2010 01:32:23 +0300 Subject: [PATCH] Do it properly --- data/qcsrc/client/sbar.qc | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/data/qcsrc/client/sbar.qc b/data/qcsrc/client/sbar.qc index 496da10a..974a2ddc 100644 --- a/data/qcsrc/client/sbar.qc +++ b/data/qcsrc/client/sbar.qc @@ -2593,12 +2593,6 @@ vector Stomachstatus_Colortrans(vector target_color) local float step; step = 0.0125; - if(spectatee_status == -1 || getstati(STAT_HEALTH) <= 0) - { - colortrans_current = '0 0 0'; - return colortrans_current; - } - if(colortrans_current_x > target_color_x + step) colortrans_current_x -= step; else if(colortrans_current_x < target_color_x - step) @@ -2882,6 +2876,8 @@ void Sbar_Draw (void) Sbar_Timer(); Sbar_Reset(); + + Stomachstatus_Colortrans('0 0 0'); } else { -- 2.39.2