From a697caccd3459785c74e70704f4b95dcaff0790c Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Sat, 12 Oct 2013 19:18:54 +0200 Subject: [PATCH] This (zero-sizes text warning) can now actually happen if someone sets 320x240 res. Let's just allow it. --- qcsrc/menu/draw.qc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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); -- 2.39.2