From: Rudolf Polzer Date: Sat, 12 Oct 2013 17:18:54 +0000 (+0200) Subject: This (zero-sizes text warning) can now actually happen if someone sets 320x240 res... X-Git-Tag: xonotic-v0.8.0~291 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a697caccd3459785c74e70704f4b95dcaff0790c;p=xonotic%2Fxonotic-data.pk3dir.git This (zero-sizes text warning) can now actually happen if someone sets 320x240 res. Let's just allow it. --- diff --git a/qcsrc/menu/draw.qc b/qcsrc/menu/draw.qc index 9c0d03243..df93daa6e 100644 --- a/qcsrc/menu/draw.qc +++ b/qcsrc/menu/draw.qc @@ -276,8 +276,10 @@ void draw_BorderPicture(vector theOrigin, string pic, vector theSize, vector the } void draw_Text(vector theOrigin, string theText, vector theSize, vector theColor, float theAlpha, float ICanHasKallerz) { - if(theSize_x <= 0 || theSize_y <= 0) - error("Drawing zero size text?\n"); + if(theSize_x <= 0 || theSize_y <= 0) { + dprint("Drawing zero size text?\n"); + return; + } //float wi; //wi = draw_TextWidth(theText, ICanHasKallerz, theSize);