Skip to content

Commit

Permalink
Fixed another comp error with gcc. Thanks spacejunk.
Browse files Browse the repository at this point in the history
  • Loading branch information
danij committed Dec 9, 2006
1 parent 3bc1e55 commit 482ec0b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion doomsday/engine/portable/include/rend_main.h
Expand Up @@ -62,7 +62,7 @@ int Rend_MidTexturePos(float *bottomleft, float *bottomright,
float *topleft, float *topright,
float *texoffy, float tcyoff,
boolean lower_unpeg);
boolean Rend_IsWallSectionPVisible(line_t* line, int section,
boolean Rend_IsWallSectionPVisible(line_t* line, segsection_t section,
boolean backside);

void Rend_ApplyLightAdaptation(int* lightvalue);
Expand Down
10 changes: 5 additions & 5 deletions doomsday/engine/portable/src/rend_main.c
Expand Up @@ -882,7 +882,7 @@ static void Rend_RenderWallSection(rendpoly_t *quad, seg_t *seg, side_t *side,
return; // no point rendering transparent polys...

// Select the correct colors for this surface.
switch(mode)
switch(section)
{
case SEG_MIDDLE:
if(side->flags & SDF_BLENDMIDTOTOP)
Expand Down Expand Up @@ -929,16 +929,16 @@ static void Rend_RenderWallSection(rendpoly_t *quad, seg_t *seg, side_t *side,
}
break;
default:
Con_Error("Rend_RenderWallSection: Invalid wall section mode %i", mode);
Con_Error("Rend_RenderWallSection: Invalid wall section %i", section);
}

// Make it fullbright?
if((flags & RPF2_GLOW) && glowingTextures)
quad->flags |= RPF_GLOW;

// Check for neighborhood division?
if(!(mode == SEG_MIDDLE && seg->SG_backsector))
Rend_WallHeightDivision(quad, seg, frontsec, mode);
if(!(section == SEG_MIDDLE && seg->SG_backsector))
Rend_WallHeightDivision(quad, seg, frontsec, section);

// Surface color/light.
RL_VertexColors(quad, Rend_SectorLight(frontsec), colorPtr);
Expand All @@ -955,7 +955,7 @@ static void Rend_RenderWallSection(rendpoly_t *quad, seg_t *seg, side_t *side,
}

// Dynamic lights.
quad->lights = DL_GetSegSectionLightLinks(segIndex, mode);
quad->lights = DL_GetSegSectionLightLinks(segIndex, section);

// Do BIAS lighting for this poly.
SB_RendPoly(quad, surface, frontsec, seg->illum[1],
Expand Down

0 comments on commit 482ec0b

Please sign in to comment.