mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-18 02:50:33 +00: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;
|
int c_drawnode;
|
||||||
|
#if XASH_LOW_MEMORY
|
||||||
|
unsigned short r_leafkeys[MAX_MAP_LEAFS];
|
||||||
|
#else
|
||||||
int r_leafkeys[MAX_MAP_LEAFS];
|
int r_leafkeys[MAX_MAP_LEAFS];
|
||||||
|
#endif
|
||||||
/*
|
/*
|
||||||
================
|
================
|
||||||
R_RecursiveWorldNode
|
R_RecursiveWorldNode
|
||||||
|
@ -1201,8 +1201,11 @@ extern int r_currentbkey;
|
|||||||
extern qboolean insubmodel;
|
extern qboolean insubmodel;
|
||||||
|
|
||||||
extern vec3_t r_entorigin;
|
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];
|
extern int r_leafkeys[MAX_MAP_LEAFS];
|
||||||
|
#endif
|
||||||
#define LEAF_KEY(pleaf) r_leafkeys[(pleaf - WORLDMODEL->leafs)]
|
#define LEAF_KEY(pleaf) r_leafkeys[(pleaf - WORLDMODEL->leafs)]
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user