mirror of
https://github.com/FWGS/xash3d-fwgs
synced 2024-11-25 19:30:08 +01:00
ref_soft: lowmemory: use ushort for r_leafkeys
This commit is contained in:
parent
26b8a1fe1d
commit
3589537147
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…
Reference in New Issue
Block a user