Skip to content

Commit

Permalink
Fix some spacing typos
Browse files Browse the repository at this point in the history
  • Loading branch information
MAN-AT-ARMS committed Sep 17, 2016
1 parent 0da8efa commit 60d1f38
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions MP/code/rend2/tr_shade.c
Original file line number Diff line number Diff line change
Expand Up @@ -544,6 +544,7 @@ static void ComputeShaderColors( shaderStage_t *pStage, vec4_t baseColor, vec4_t
break;
case CGEN_FOG:
fog = tr.world->fogs + tess.fogNum;

baseColor[0] = ((unsigned char *)(&fog->colorInt))[0] / 255.0f;
baseColor[1] = ((unsigned char *)(&fog->colorInt))[1] / 255.0f;
baseColor[2] = ((unsigned char *)(&fog->colorInt))[2] / 255.0f;
Expand Down
3 changes: 2 additions & 1 deletion SP/code/rend2/tr_shade.c
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,8 @@ static void ComputeShaderColors( shaderStage_t *pStage, vec4_t baseColor, vec4_t
|| ((blend & GLS_SRCBLEND_BITS) == GLS_SRCBLEND_ONE_MINUS_DST_COLOR)
|| ((blend & GLS_DSTBLEND_BITS) == GLS_DSTBLEND_SRC_COLOR)
|| ((blend & GLS_DSTBLEND_BITS) == GLS_DSTBLEND_ONE_MINUS_SRC_COLOR);
qboolean is2DDraw = backEnd.currentEntity == &backEnd.entity2D;

qboolean is2DDraw = backEnd.currentEntity == &backEnd.entity2D;

float overbright = (isBlend || is2DDraw) ? 1.0f : (float)(1 << tr.overbrightBits);

Expand Down

0 comments on commit 60d1f38

Please sign in to comment.