mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-26 22:31:05 +00:00
forgot to subtract 1 from the incoming hull `handle'
This commit is contained in:
parent
28b1598e7e
commit
88eb9e118a
1 changed files with 3 additions and 3 deletions
|
@ -1837,10 +1837,10 @@ PF_getboxhull (progs_t *pr)
|
||||||
static void
|
static void
|
||||||
PF_freeboxhull (progs_t *pr)
|
PF_freeboxhull (progs_t *pr)
|
||||||
{
|
{
|
||||||
int h = G_INT (pr, OFS_PARM0);
|
int h = G_INT (pr, OFS_PARM0) - 1;
|
||||||
hull_t *hull = &pf_hull_list[h];
|
hull_t *hull = &pf_hull_list[h];
|
||||||
|
|
||||||
if (h < 1 || h > MAX_PF_HULLS
|
if (h < 0 || h > MAX_PF_HULLS - 1
|
||||||
|| hull->clipnodes != pf_clipnodes[h]
|
|| hull->clipnodes != pf_clipnodes[h]
|
||||||
|| hull->planes != pf_planes[h])
|
|| hull->planes != pf_planes[h])
|
||||||
PR_RunError (pr, "PF_freeboxhull: invalid box hull handle\n");
|
PR_RunError (pr, "PF_freeboxhull: invalid box hull handle\n");
|
||||||
|
@ -1852,7 +1852,7 @@ PF_freeboxhull (progs_t *pr)
|
||||||
static void
|
static void
|
||||||
PF_rotate_bbox (progs_t *pr)
|
PF_rotate_bbox (progs_t *pr)
|
||||||
{
|
{
|
||||||
int h = G_INT (pr, OFS_PARM0);
|
int h = G_INT (pr, OFS_PARM0) - 1;
|
||||||
float *angles = G_VECTOR (pr, OFS_PARM1);
|
float *angles = G_VECTOR (pr, OFS_PARM1);
|
||||||
float *mins = G_VECTOR (pr, OFS_PARM2);
|
float *mins = G_VECTOR (pr, OFS_PARM2);
|
||||||
float *maxs = G_VECTOR (pr, OFS_PARM3);
|
float *maxs = G_VECTOR (pr, OFS_PARM3);
|
||||||
|
|
Loading…
Reference in a new issue