mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-30 12:40:42 +00:00
case i has 7 visits, not 6 :P
This commit is contained in:
parent
bf194e074c
commit
9aa84f4ead
1 changed files with 4 additions and 4 deletions
|
@ -558,15 +558,15 @@ process_corners (struct box_def *box)
|
||||||
case 7: // i
|
case 7: // i
|
||||||
for (i = 0; i < 6; i++) {
|
for (i = 0; i < 6; i++) {
|
||||||
// don't need to check the last point
|
// don't need to check the last point
|
||||||
if (visit[(i + 2) % 6].face == visit[(i + 4) % 6].face
|
if (visit[(i + 2) % 7].face == visit[(i + 4) % 7].face
|
||||||
&& visit[(i + 4) % 6].face == visit[(i + 6) % 6].face)
|
&& visit[(i + 4) % 7].face == visit[(i + 6) % 7].face)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
vec3_t v;
|
vec3_t v;
|
||||||
|
|
||||||
find_cube_vertex (visit[i].face, visit[(i + 1) % 6].face,
|
find_cube_vertex (visit[i].face, visit[(i + 1) % 7].face,
|
||||||
visit[(i + 2) % 6].face, v);
|
visit[(i + 2) % 7].face, v);
|
||||||
|
|
||||||
insert_cube_vertices (box, visit[i], 1, v);
|
insert_cube_vertices (box, visit[i], 1, v);
|
||||||
insert_cube_vertices (box, visit[(i + 1) % 7], 1, v);
|
insert_cube_vertices (box, visit[(i + 1) % 7], 1, v);
|
||||||
|
|
Loading…
Reference in a new issue