From c0a0cbd12dd0364c79caa9479ec2002879b080ee Mon Sep 17 00:00:00 2001 From: Samual Lenks Date: Sat, 2 Mar 2013 23:18:40 -0500 Subject: [PATCH] Fix subsequent centerprint messages from losing position fading --- qcsrc/client/hud.qc | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/qcsrc/client/hud.qc b/qcsrc/client/hud.qc index f262b0e26..244ba8926 100644 --- a/qcsrc/client/hud.qc +++ b/qcsrc/client/hud.qc @@ -4238,7 +4238,7 @@ void HUD_CenterPrint (void) fontsize = '1 1 0' * height; entries = bound(1, floor(panel_size_y/height), CENTERPRINT_MAX_ENTRIES); - float i, j, k, n; + float i, j, k, n, g; float a, sz, align, current_msg_pos_y = 0, msg_size; vector pos; string ts; @@ -4249,7 +4249,7 @@ void HUD_CenterPrint (void) if (autocvar_hud_panel_centerprint_flip) pos_y += panel_size_y; align = bound(0, autocvar_hud_panel_centerprint_align, 1); - for (i=0, j=cpm_index; i