diff --git a/r_bsp.c b/r_bsp.c index a141ba5f..816bf538 100644 --- a/r_bsp.c +++ b/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 diff --git a/r_local.h b/r_local.h index 63e1a562..ea2542c6 100644 --- a/r_local.h +++ b/r_local.h @@ -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)]