Skip to content

Commit

Permalink
Move the sprites array to zone
Browse files Browse the repository at this point in the history
  • Loading branch information
viciious committed Oct 22, 2024
1 parent 7e8c66c commit e94219d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion r_data.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ boolean texmips = false;
VINT numdecals = 0;
texdecal_t *decals = NULL;

spritedef_t sprites[NUMSPRITES];
spritedef_t *sprites;
spriteframe_t* spriteframes;
VINT *spritelumps;

Expand Down Expand Up @@ -369,6 +369,7 @@ void R_InitData (void)
int i;
#endif

sprites = Z_Malloc(sizeof(*sprites)*NUMSPRITES, PU_STATIC);
dc_playpals = (uint8_t*)W_POINTLUMPNUM(W_GetNumForName("PLAYPALS"));

firstsprite = W_GetNumForName ("S_START") + 1;
Expand Down
2 changes: 1 addition & 1 deletion r_local.h
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ typedef struct

extern spriteframe_t *spriteframes;
extern VINT *spritelumps;
extern spritedef_t sprites[NUMSPRITES];
extern spritedef_t *sprites;

/*
===============================================================================
Expand Down

0 comments on commit e94219d

Please sign in to comment.