From: MirceaKitsune Date: Mon, 30 Jan 2012 20:07:21 +0000 (+0200) Subject: Still draw the portrait when the HUD is rebooting. X-Git-Url: https://git.xonotic.org/?a=commitdiff_plain;h=9e7aaf86ff57e9d9ec072b31d736fab29a20dcbf;p=voretournament%2Fvoretournament.git Still draw the portrait when the HUD is rebooting. --- diff --git a/data/qcsrc/client/hud.qc b/data/qcsrc/client/hud.qc index b07889b8..043e360c 100644 --- a/data/qcsrc/client/hud.qc +++ b/data/qcsrc/client/hud.qc @@ -3148,6 +3148,7 @@ void Sbar_Draw (void) drawpic(warn_pos - '128 0 0', "gfx/hud/sb_power_fail", '256 256 0', '1 1 1', sbar_alpha_fg, DRAWFLAG_NORMAL); drawpic(warn_pos - '16 0 0' + '0 150 0', "gfx/hud/sb_power_fail_icon", '32 32 0', '1 1 1', sbar_alpha_fg * (0.5 + sin(time * 5) / 2), DRAWFLAG_NORMAL); power_boot = time + g_power_reboot; + Sbar_Portrait(); // draw the portrait still return; // skip drawing the HUD } else if(time <= power_boot) @@ -3155,6 +3156,7 @@ void Sbar_Draw (void) // subsystems are rebooting drawpic(warn_pos - '128 0 0', "gfx/hud/sb_power_reboot", '256 256 0', '1 1 1', sbar_alpha_fg, DRAWFLAG_NORMAL); 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); + Sbar_Portrait(); // draw the portrait still return; // skip drawing the HUD } }