From: Mircea Kitsune Date: Thu, 26 Dec 2019 14:49:24 +0000 (+0000) Subject: Use the proper TextWidth syntax X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=refs%2Fheads%2Fmirceakitsune%2Fcampaign_colorcode;p=xonotic%2Fxonotic-data.pk3dir.git Use the proper TextWidth syntax --- diff --git a/qcsrc/menu/xonotic/campaign.qc b/qcsrc/menu/xonotic/campaign.qc index ff7110464..66bf3de68 100644 --- a/qcsrc/menu/xonotic/campaign.qc +++ b/qcsrc/menu/xonotic/campaign.qc @@ -30,7 +30,7 @@ void rewrapCampaign(float w, float l0, float emptyheight, vector theFontSize) getWrappedLine_remaining = s; while(getWrappedLine_remaining) { - s = getWrappedLine(w, theFontSize, stringwidth_colors); + s = getWrappedLine(w, theFontSize, draw_TextWidth_WithColors); if(--l < 0) goto toolong; r = strcat(r, s, "\n"); }