mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-04-20 09:11:01 +00:00
Order correctly and include z_zone.h
This commit is contained in:
parent
7f9b5cb0a8
commit
49adc4e267
1 changed files with 4 additions and 3 deletions
|
@ -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++;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue