]> de.git.xonotic.org Git - voretournament/voretournament.git/blobdiff - data/qcsrc/client/sbar.qc
Turn the transition back to black when we die or go spectating
[voretournament/voretournament.git] / 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