mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 04:42:32 +00:00
fix a small bug
This commit is contained in:
parent
65475fbd6e
commit
0b576e42a1
1 changed files with 5 additions and 2 deletions
|
@ -1902,8 +1902,7 @@ PF_rotate_bbox (progs_t *pr)
|
||||||
}
|
}
|
||||||
// find all 8 corners of the rotated box
|
// find all 8 corners of the rotated box
|
||||||
VectorCopy (mins, v[0]);
|
VectorCopy (mins, v[0]);
|
||||||
VectorCopy (mins, v[1]);
|
VectorCopy (maxs, v[1]);
|
||||||
|
|
||||||
VectorSubtract (maxs, mins, d);
|
VectorSubtract (maxs, mins, d);
|
||||||
for (i = 0; i < 3; i++) {
|
for (i = 0; i < 3; i++) {
|
||||||
vec3_t x;
|
vec3_t x;
|
||||||
|
@ -1917,11 +1916,15 @@ PF_rotate_bbox (progs_t *pr)
|
||||||
VectorCopy (v[0], hull->clip_mins);
|
VectorCopy (v[0], hull->clip_mins);
|
||||||
VectorCopy (v[0], hull->clip_maxs);
|
VectorCopy (v[0], hull->clip_maxs);
|
||||||
for (i = 0; i < 8; i++) {
|
for (i = 0; i < 8; i++) {
|
||||||
|
//Con_Printf ("'%0.1f %0.1f %0.1f'\n", v[i][0], v[i][1], v[i][2]);
|
||||||
for (j = 0; j < 3; j++) {
|
for (j = 0; j < 3; j++) {
|
||||||
hull->clip_mins[j] = min (hull->clip_mins[j], v[i][j]);
|
hull->clip_mins[j] = min (hull->clip_mins[j], v[i][j]);
|
||||||
hull->clip_maxs[j] = max (hull->clip_maxs[j], v[i][j]);
|
hull->clip_maxs[j] = max (hull->clip_maxs[j], v[i][j]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
//Con_Printf ("---\n");
|
||||||
|
//Con_Printf ("'%0.1f %0.1f %0.1f'\n", hull->clip_mins[0], hull->clip_mins[1], hull->clip_mins[2]);
|
||||||
|
//Con_Printf ("'%0.1f %0.1f %0.1f'\n", hull->clip_maxs[0], hull->clip_maxs[1], hull->clip_maxs[2]);
|
||||||
|
|
||||||
// now set up the clip planes
|
// now set up the clip planes
|
||||||
hull->planes[0].dist = DotProduct (dir[1], maxs);
|
hull->planes[0].dist = DotProduct (dir[1], maxs);
|
||||||
|
|
Loading…
Reference in a new issue