]> de.git.xonotic.org Git - voretournament/voretournament.git/blobdiff - data/qcsrc/client/sbar.qc
Don't show crosshair and run helper voice either while rebooting
[voretournament/voretournament.git] / data / qcsrc / client / sbar.qc
index a7c6e570a65101af9e793003c247f54b23c396c3..0371c39b4157ee7cbaf29e00698991dfd3002ce5 100644 (file)
@@ -2784,8 +2784,6 @@ float vote_prev; // previous state of vote_active to check for a change
 float vote_alpha;\r
 float vote_change; // "time" when vote_active changed\r
 \r
-float power_boot;\r
-\r
 vector stomachstatus_colorfade_current;\r
 vector StomachStatus_ColorFade(vector target_color)\r
 {\r
@@ -3093,7 +3091,7 @@ void Sbar_Draw (void)
                                power_boot = time + g_power_reboot;\r
                                return;\r
                        }\r
-                       else if(time < power_boot)\r
+                       else if(time <= power_boot)\r
                        {\r
                                drawpic(warn_pos - '128 0 0', "gfx/hud/sb_power_reboot", '256 256 0', '1 1 1', sbar_alpha_fg, DRAWFLAG_NORMAL);\r
                                drawpic(warn_pos - '16 0 0' + '0 150 0', "gfx/hud/sb_power_reboot_icon", '32 32 0', '1 1 1', sbar_alpha_fg * (0.5 + sin(time * 5) / 2), DRAWFLAG_NORMAL);\r