Skip to content

Commit

Permalink
Fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
vsonnier committed Jul 19, 2024
1 parent 51908f5 commit 23e6c80
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Quake/gl_sky.c
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ void Sky_ClipPoly (int nump, vec3_t vecs, int stage)
float d, e;
int newc[2];

int i, j;
int i, j = 0;

const size_t MAX_CLIP_VERTS = nump + 2;

Expand Down Expand Up @@ -669,8 +669,6 @@ Sky_ProcessPoly
*/
void Sky_ProcessPoly (cb_context_t *cbx, glpoly_t *p, float color[3])
{
int i;

float *poly_vert;

// draw it
Expand All @@ -683,7 +681,7 @@ void Sky_ProcessPoly (cb_context_t *cbx, glpoly_t *p, float color[3])

TEMP_ALLOC (vec3_t, verts, MAX_CLIP_VERTS);

for (i = 0; i < MAX_CLIP_VERTS; i++)
for (size_t i = 0; i < MAX_CLIP_VERTS; i++)
{
poly_vert = &p->verts[0][0] + (i * VERTEXSIZE);
VectorSubtract (poly_vert, r_origin, verts[i]);
Expand Down

0 comments on commit 23e6c80

Please sign in to comment.