From: terencehill Date: Sun, 13 Mar 2022 01:17:00 +0000 (+0100) Subject: Fix compilation units X-Git-Tag: xonotic-v0.8.5~81^2~16 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b3317742ec9b098e482a7535e7994ee03b4e7849;p=xonotic%2Fxonotic-data.pk3dir.git Fix compilation units --- diff --git a/qcsrc/menu/xonotic/textbox.qc b/qcsrc/menu/xonotic/textbox.qc index e2eaf2a85..e79af1e33 100644 --- a/qcsrc/menu/xonotic/textbox.qc +++ b/qcsrc/menu/xonotic/textbox.qc @@ -89,7 +89,7 @@ void XonoticTextBox_drawListBoxItem(entity me, int i, vector absSize, bool isSel string s = me.getTextBoxLine(me, i); vector color = (me.allowColors) ? '1 1 1' : me.colorL; if (me.align == 0.5) - draw_CenterText(me.realUpperMargin * eY + 0.5 * eX, s, me.realFontSize, color, 1, me.allowColors); + draw_CenterText(0.5 * eX, s, me.realFontSize, color, 1, me.allowColors); else draw_Text(vec2(0, 0), s, me.realFontSize, color, me.alpha, me.allowColors); }