Skip to content

Commit

Permalink
Fixed|World|ContactSpreader: Spread contacts over middle surfaces wit…
Browse files Browse the repository at this point in the history
…h a non-opaque material

Addresses an issue with dynamic lights, observed in hexen-dk MAP48,
in the westernmost room (the Afrit cages).
  • Loading branch information
danij-deng committed May 13, 2015
1 parent 3be1032 commit 481bc01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doomsday/client/src/world/contactspreader.cpp
Expand Up @@ -225,7 +225,7 @@ struct ContactSpreader
// Ensure we have up to date info about the material.
matAnimator.prepare();

if(matAnimator.dimensions().y >= openTop - openBottom)
if(matAnimator.isOpaque() && matAnimator.dimensions().y >= openTop - openBottom)
{
// Possibly; check the placement.
WallEdge edge(WallSpec::fromMapSide(facingLineSide, LineSide::Middle),
Expand Down

0 comments on commit 481bc01

Please sign in to comment.