From: Samual Lenks Date: Sun, 3 Mar 2013 04:18:40 +0000 (-0500) Subject: Fix subsequent centerprint messages from losing position fading X-Git-Tag: xonotic-v0.7.0~62^2~23^2~33 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c0a0cbd12dd0364c79caa9479ec2002879b080ee;p=xonotic%2Fxonotic-data.pk3dir.git Fix subsequent centerprint messages from losing position fading --- 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