From 9aa84f4ead4798e82a7e11e9066575da98e3420d Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Wed, 2 Oct 2002 01:58:29 +0000 Subject: [PATCH] case i has 7 visits, not 6 :P --- libs/video/renderer/gl/gl_sky_clip.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libs/video/renderer/gl/gl_sky_clip.c b/libs/video/renderer/gl/gl_sky_clip.c index db22ff711..a7e6c3b7b 100644 --- a/libs/video/renderer/gl/gl_sky_clip.c +++ b/libs/video/renderer/gl/gl_sky_clip.c @@ -558,15 +558,15 @@ process_corners (struct box_def *box) case 7: // i for (i = 0; i < 6; i++) { // don't need to check the last point - if (visit[(i + 2) % 6].face == visit[(i + 4) % 6].face - && visit[(i + 4) % 6].face == visit[(i + 6) % 6].face) + if (visit[(i + 2) % 7].face == visit[(i + 4) % 7].face + && visit[(i + 4) % 7].face == visit[(i + 6) % 7].face) break; } { vec3_t v; - find_cube_vertex (visit[i].face, visit[(i + 1) % 6].face, - visit[(i + 2) % 6].face, v); + find_cube_vertex (visit[i].face, visit[(i + 1) % 7].face, + visit[(i + 2) % 7].face, v); insert_cube_vertices (box, visit[i], 1, v); insert_cube_vertices (box, visit[(i + 1) % 7], 1, v);