mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-10 14:42:13 +00:00
Allow 'gl_font creditsfont' (and potentially others) for eukara.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5435 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
dc999091aa
commit
15b1e813a4
1 changed files with 6 additions and 3 deletions
|
@ -2144,9 +2144,12 @@ struct font_s *Font_LoadFont(const char *fontfilename, float vheight)
|
||||||
if (f->faces < MAX_FACES)
|
if (f->faces < MAX_FACES)
|
||||||
{
|
{
|
||||||
size_t lumpsize;
|
size_t lumpsize;
|
||||||
qbyte lumptype;
|
qbyte lumptype = 0;
|
||||||
void *lumpdata;
|
void *lumpdata = NULL;
|
||||||
lumpdata = W_GetLumpName("conchars", &lumpsize, &lumptype);
|
if ((!lumpdata || lumptype != TYP_HLFONT) && *fontfilename)
|
||||||
|
lumpdata = W_GetLumpName(fontfilename, &lumpsize, &lumptype);
|
||||||
|
if (!lumpdata || lumptype != TYP_HLFONT)
|
||||||
|
lumpdata = W_GetLumpName("conchars", &lumpsize, &lumptype);
|
||||||
if (lumpdata && lumptype == TYP_HLFONT)
|
if (lumpdata && lumptype == TYP_HLFONT)
|
||||||
{
|
{
|
||||||
fontface_t *fa = Z_Malloc(sizeof(*fa));
|
fontface_t *fa = Z_Malloc(sizeof(*fa));
|
||||||
|
|
Loading…
Reference in a new issue