Skip to content

Commit

Permalink
Map Renderer: Flip the "missing" material on ceiling planes
Browse files Browse the repository at this point in the history
Always flip the missing material when used on ceiling planes so that
the embedded "missing" text appears correct.
  • Loading branch information
danij-deng committed May 1, 2012
1 parent 76241c7 commit 35ae543
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doomsday/engine/portable/src/rend_main.c
Expand Up @@ -2866,7 +2866,7 @@ static void Rend_RenderBspLeaf(BspLeaf* bspLeaf)
// Inverted.
texOffset[VY] = -texOffset[VY];

texScale[VX] = ((suf->flags & DDSUF_MATERIAL_FLIPH)? -1 : 1);
texScale[VX] = (((suf->flags & DDSUF_MATERIAL_FLIPH) || (texMode == 1 && (i == PLN_CEILING)))? -1 : 1);
texScale[VY] = ((suf->flags & DDSUF_MATERIAL_FLIPV)? -1 : 1);

Rend_RenderPlane(bspLeaf, plane->type, plane->visHeight, suf->tangent, suf->bitangent, suf->normal,
Expand Down

0 comments on commit 35ae543

Please sign in to comment.