X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fmenu%2Fdraw.qc;h=df93daa6e0bcd3cacaf8fbf57d3ffdbdb0d5ba35;hb=af818d85ab5246b8ecd1743ecf808d39e4396445;hp=9c0d032432f384a60299fddc697c5b2df918ee06;hpb=8dd9e564bf844bd71312218ce4714e6324d6beb5;p=xonotic%2Fxonotic-data.pk3dir.git 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);