ref_soft: lowmemory: use ushort for r_leafkeys

This commit is contained in:
mittorn 2019-11-02 12:43:45 +07:00
parent 26b8a1fe1d
commit 3589537147
2 changed files with 8 additions and 2 deletions

View File

@ -773,8 +773,11 @@ void R_DrawSubmodelPolygons (model_t *pmodel, int clipflags, mnode_t *topnode)
int c_drawnode;
#if XASH_LOW_MEMORY
unsigned short r_leafkeys[MAX_MAP_LEAFS];
#else
int r_leafkeys[MAX_MAP_LEAFS];
#endif
/*
================
R_RecursiveWorldNode

View File

@ -1201,8 +1201,11 @@ extern int r_currentbkey;
extern qboolean insubmodel;
extern vec3_t r_entorigin;
#if XASH_LOW_MEMORY
extern unsigned short r_leafkeys[MAX_MAP_LEAFS];
#else
extern int r_leafkeys[MAX_MAP_LEAFS];
#endif
#define LEAF_KEY(pleaf) r_leafkeys[(pleaf - WORLDMODEL->leafs)]