Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
danij-deng committed May 23, 2013
1 parent a507f4c commit 7a859d0
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions doomsday/client/src/render/rend_main.cpp
Expand Up @@ -2232,9 +2232,8 @@ static void writeLeafWallSections()
if(leftEdge.isValid() && rightEdge.isValid() &&
rightEdge.top().distance() > leftEdge.bottom().distance())
{
int wsFlags = DEFAULT_WRITE_WALL_SECTION_FLAGS;
if(!useLightLevelDeltas)
wsFlags &= ~WSF_NO_LIGHTDELTAS;
int wsFlags = DEFAULT_WRITE_WALL_SECTION_FLAGS
| (!useLightLevelDeltas? WSF_NO_LIGHTDELTAS : 0);

writeWallSection(leftEdge, rightEdge,
hedge, hedge.biasSurfaceForGeometryGroup(Line::Side::Bottom),
Expand All @@ -2256,9 +2255,8 @@ static void writeLeafWallSections()
if(leftEdge.isValid() && rightEdge.isValid() &&
rightEdge.top().distance() > leftEdge.bottom().distance())
{
int wsFlags = DEFAULT_WRITE_WALL_SECTION_FLAGS;
if(!useLightLevelDeltas)
wsFlags &= ~WSF_NO_LIGHTDELTAS;
int wsFlags = DEFAULT_WRITE_WALL_SECTION_FLAGS
| (!useLightLevelDeltas? WSF_NO_LIGHTDELTAS : 0);

writeWallSection(leftEdge, rightEdge,
hedge, hedge.biasSurfaceForGeometryGroup(Line::Side::Top),
Expand Down Expand Up @@ -2286,11 +2284,11 @@ static void writeLeafWallSections()
middleBottomZ = leftEdge.bottom().distance();
middleTopZ = rightEdge.top().distance();

int wsFlags = DEFAULT_WRITE_WALL_SECTION_FLAGS;
int wsFlags = DEFAULT_WRITE_WALL_SECTION_FLAGS
| (!useLightLevelDeltas? WSF_NO_LIGHTDELTAS : 0);

if(twoSided)
wsFlags &= ~WSF_FORCE_OPAQUE;
if(!useLightLevelDeltas)
wsFlags &= ~WSF_NO_LIGHTDELTAS;

wroteOpaqueMiddle =
writeWallSection(leftEdge, rightEdge,
Expand Down

0 comments on commit 7a859d0

Please sign in to comment.