From: divverent Date: Sun, 12 Dec 2010 19:25:06 +0000 (+0000) Subject: fix some stupid ft2.c warnings X-Git-Tag: xonotic-v0.1.0preview~20 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3955595041577dee656bc2856f2f8d711acaca83;p=xonotic%2Fdarkplaces.git fix some stupid ft2.c warnings git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10654 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=d14c7bb2783fe7ea0948d515980547499bd57600 --- diff --git a/ft2.c b/ft2.c index 21702966..790f7998 100644 --- a/ft2.c +++ b/ft2.c @@ -387,9 +387,13 @@ qboolean Font_LoadFont(const char *name, dp_font_t *dpfnt) if (!Font_LoadFile(dpfnt->fallbacks[i], dpfnt->fallback_faces[i], &dpfnt->settings, fb)) { - Con_Printf("Failed to allocate font for fallback %i of font %s\n", i, name); + if(!FS_FileExists(va("%s.tga", dpfnt->fallbacks[i]))) + if(!FS_FileExists(va("%s.png", dpfnt->fallbacks[i]))) + if(!FS_FileExists(va("%s.jpg", dpfnt->fallbacks[i]))) + if(!FS_FileExists(va("%s.pcx", dpfnt->fallbacks[i]))) + Con_Printf("Failed to load font %s for fallback %i of font %s\n", dpfnt->fallbacks[i], i, name); Mem_Free(fb); - break; + continue; } count = 0; for (s = 0; s < MAX_FONT_SIZES && dpfnt->req_sizes[s] >= 0; ++s)