Skip to content

Commit

Permalink
Fixed a loop invariant.
Browse files Browse the repository at this point in the history
  • Loading branch information
danij committed May 29, 2005
1 parent 26aaed4 commit a907f28
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion doomsday/Src/rend_dyn.c
Expand Up @@ -317,6 +317,11 @@ void DL_ThingColor(lumobj_t * lum, DGLubyte * outRGB, float light)
if(useFog)
light *= .5f; // Would be too much.

if(lum->decorMap)
{ // Decoration maps are pre-colored.
light *= 255;
}

// Multiply with the light color.
for(i = 0; i < 3; i++)
{
Expand All @@ -327,7 +332,7 @@ void DL_ThingColor(lumobj_t * lum, DGLubyte * outRGB, float light)
else
{
// Decoration maps are pre-colored.
outRGB[i] = (DGLubyte) (light * 255);
outRGB[i] = (DGLubyte) (light);
}
}
}
Expand Down

0 comments on commit a907f28

Please sign in to comment.