]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Use the proper TextWidth syntax mirceakitsune/campaign_colorcode
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 26 Dec 2019 14:49:24 +0000 (14:49 +0000)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 26 Dec 2019 14:49:24 +0000 (14:49 +0000)
qcsrc/menu/xonotic/campaign.qc

index ff71104648cb108ca8b217cc702949cd49a63b43..66bf3de689ab5cfbc3dfde7693f7bfa753961762 100644 (file)
@@ -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");
                        }