Fix less planes reserved for hull box testing than used down below.

This is an original bug, already present in Vanilla Quake 2.

Reported by @m-x-d, closes #1171.
This commit is contained in:
Yamagi 2024-12-20 15:30:32 +01:00
parent cdf1cba106
commit 8c8488657c

View file

@ -82,7 +82,7 @@ static cleaf_t map_leafs[MAX_MAP_LEAFS];
static cmodel_t map_cmodels[MAX_MAP_MODELS];
static cnode_t map_nodes[MAX_MAP_NODES+6]; /* extra for box hull */
static cplane_t *box_planes;
static cplane_t map_planes[MAX_MAP_PLANES+6]; /* extra for box hull */
static cplane_t map_planes[MAX_MAP_PLANES+12]; /* extra for box hull */
static cvar_t *map_noareas;
static dareaportal_t map_areaportals[MAX_MAP_AREAPORTALS];
static dvis_t *map_vis = (dvis_t *)map_visibility;