]> git.xonotic.org Git - voretournament/voretournament.git/commitdiff
Turn the transition back to black when we die or go spectating
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 4 Sep 2010 22:27:35 +0000 (01:27 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 4 Sep 2010 22:27:35 +0000 (01:27 +0300)
data/qcsrc/client/sbar.qc

index e62cca4a22a977b8cfba5b0606f9404da4c3fda5..496da10ab86120bef2c906f72788f4de08f369aa 100644 (file)
@@ -2593,6 +2593,12 @@ 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