]> de.git.xonotic.org Git - voretournament/voretournament.git/commitdiff
Do it properly
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 4 Sep 2010 22:32:23 +0000 (01:32 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 4 Sep 2010 22:32:23 +0000 (01:32 +0300)
data/qcsrc/client/sbar.qc

index 496da10ab86120bef2c906f72788f4de08f369aa..974a2ddca1a089110c0aa441e826a65cbc9d52eb 100644 (file)
@@ -2593,12 +2593,6 @@ vector Stomachstatus_Colortrans(vector target_color)
        local float step;\r
        step = 0.0125;\r
 \r
-       if(spectatee_status == -1 || getstati(STAT_HEALTH) <= 0)\r
-       {\r
-               colortrans_current = '0 0 0';\r
-               return colortrans_current;\r
-       }\r
-\r
        if(colortrans_current_x > target_color_x + step)\r
                colortrans_current_x -= step;\r
        else if(colortrans_current_x < target_color_x - step)\r
@@ -2882,6 +2876,8 @@ void Sbar_Draw (void)
                Sbar_Timer();\r
 \r
                Sbar_Reset();\r
+\r
+               Stomachstatus_Colortrans('0 0 0');\r
        }\r
        else\r
        {\r