From: terencehill Date: Tue, 5 Jul 2011 20:55:45 +0000 (+0200) Subject: Fade away the msgs keeping the strings centered X-Git-Tag: xonotic-v0.5.0~155 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=791ea21ea796887818b67b0ccbbeb99d865b2b11;p=xonotic%2Fxonotic-data.pk3dir.git Fade away the msgs keeping the strings centered --- diff --git a/qcsrc/client/hud.qc b/qcsrc/client/hud.qc index 8fc1a9bd2..03f7fd9e5 100644 --- a/qcsrc/client/hud.qc +++ b/qcsrc/client/hud.qc @@ -4597,7 +4597,7 @@ void HUD_CenterPrint (void) { if (align) pos_x = panel_pos_x + (panel_size_x - stringwidth(ts, TRUE, fontsize)) * align; - drawcolorcodedstring(pos + '0 1 0' * 1.5 * (1 - sz) * fontsize_y, ts, fontsize, a * panel_fg_alpha, DRAWFLAG_NORMAL); + drawcolorcodedstring(pos + eY * 0.5 * (1 - sz) * fontsize_y, ts, fontsize, a * panel_fg_alpha, DRAWFLAG_NORMAL); pos_y += fontsize_y; } else