]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fade away the msgs keeping the strings centered
authorterencehill <piuntn@gmail.com>
Tue, 5 Jul 2011 20:55:45 +0000 (22:55 +0200)
committerterencehill <piuntn@gmail.com>
Tue, 5 Jul 2011 20:55:45 +0000 (22:55 +0200)
qcsrc/client/hud.qc

index 8fc1a9bd23a6db3d49d12f433f9ce8da01be80e6..03f7fd9e55578372dc9a734b1620545032b2829b 100644 (file)
@@ -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