Order correctly and include z_zone.h

This commit is contained in:
James R 2019-06-26 00:31:20 -07:00
parent 7f9b5cb0a8
commit 49adc4e267

View file

@ -13,6 +13,7 @@
#include "doomdef.h"
#include "hu_stuff.h"
#include "font.h"
#include "z_zone.h"
font_t fontv[MAX_FONTS];
int fontc;
@ -28,8 +29,8 @@ FontCache (font_t *fnt)
{
fnt->font[i] = HU_CachePatch(
"%s%.*d",
fnt->digits,
fnt->prefix,
fnt->digits,
c);
}
}
@ -54,11 +55,11 @@ Font_DumbRegister (const font_t *sfnt)
fnt = &fontv[fontc];
memcpy(fnt, sfnt, sizeof (font_t));
if (!( fnt->font = ZZ_Alloc(sfnt->size * sizeof (patch_t *)) ))
return -1;
memcpy(fnt, sfnt, sizeof (font_t));
return fontc++;
}