Skip to content

Commit

Permalink
Combine double increment.
Browse files Browse the repository at this point in the history
Cleans up Clang warning.
  • Loading branch information
ZoogieZork committed Aug 8, 2016
1 parent db57df0 commit 8a771e5
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions engine/VideoServices/ColorPalette.cpp
Expand Up @@ -89,11 +89,8 @@ paletteEntry_t *GetColors(double pGamma, double pIntensity, double pIntensityBas
AssignPaletteEntry(lReturnValue[lColorIndex], lRed, lGreen, lBlue);
}

for(; lColorIndex < MR_BASIC_COLORS; lColorIndex++) {

for(; lColorIndex < MR_BASIC_COLORS; lColorIndex += 2) {
AssignPaletteEntry(lReturnValue[lColorIndex], 255, 255, lColorIndex - 15);

lColorIndex++;
}

return lReturnValue;
Expand Down

0 comments on commit 8a771e5

Please sign in to comment.