Don't waste fps too much.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1385 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2005-09-28 23:30:10 +00:00
parent 184ca975fc
commit de790a2d35

View file

@ -149,8 +149,9 @@ void M_DrawTextBox (int x, int y, int width, int lines)
cx = x;
cy = y;
p = Draw_SafeCachePic ("gfx/box_tl.lmp");
if (p)
M_DrawTransPic (cx, cy, p);
if (!p)
return; //assume we can't find any
M_DrawTransPic (cx, cy, p);
p = Draw_SafeCachePic ("gfx/box_ml.lmp");
if (p)
for (n = 0; n < lines; n++)