From b3317742ec9b098e482a7535e7994ee03b4e7849 Mon Sep 17 00:00:00 2001 From: terencehill Date: Sun, 13 Mar 2022 02:17:00 +0100 Subject: [PATCH] Fix compilation units --- qcsrc/menu/xonotic/textbox.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.39.2