]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/menu/xonotic/textbox.qc
Merge branch 'bones_was_here/autopause_dedicated' into 'master'
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / xonotic / textbox.qc
index e2eaf2a854cecded7ce95fb55ea6b739ee0f80fd..e79af1e335891810a5834a3b8fecbd4d0620fc05 100644 (file)
@@ -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);
 }