ref_soft: lowmemory: use ushort for r_leafkeys
This commit is contained in:
parent
26b8a1fe1d
commit
3589537147
2 changed files with 8 additions and 2 deletions
5
r_bsp.c
5
r_bsp.c
|
@ -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
|
||||
|
|
|
@ -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)]
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue