Skip to content

Commit

Permalink
SkyFixEdge|Client: Fix typo in previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
danij-deng committed Aug 25, 2013
1 parent 6e47d90 commit 59f4b44
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions doomsday/client/src/render/skyfixedge.cpp
Expand Up @@ -126,7 +126,8 @@ DENG2_PIMPL(SkyFixEdge)
BspLeaf const *frontLeaf = &hedge->face().mapElement()->as<BspLeaf>();
BspLeaf const *backLeaf = hedge->twin().hasFace()? &hedge->twin().face().mapElement()->as<BspLeaf>() : 0;

if(!(!backLeaf || backLeaf->sectorPtr() != frontLeaf->sectorPtr())) return false;
if(!(!backLeaf || backLeaf->sectorPtr() != frontLeaf->sectorPtr()))
return false;

// Select the relative planes for the fix type.
int relPlane = lower? Sector::Floor : Sector::Ceiling;
Expand Down Expand Up @@ -154,7 +155,8 @@ DENG2_PIMPL(SkyFixEdge)
}

coord_t fz, bz;
R_SetRelativeHeights(frontLeaf->sectorPtr(), backLeaf->sectorPtr(), relPlane, &fz, &bz);
R_SetRelativeHeights(&front->sector(), back? &back->sector() : 0,
relPlane, &fz, &bz);

coord_t planeZ = (back && back->surface().hasSkyMaskedMaterial() &&
fz < bz? bz : fz);
Expand Down

0 comments on commit 59f4b44

Please sign in to comment.