Skip to content

Commit

Permalink
Audio: Degenerate BSP leafs cannot affect sector reverb characteristics
Browse files Browse the repository at this point in the history
Degenerate BSP leafs have no geometry.
  • Loading branch information
danij-deng committed May 17, 2013
1 parent 518b2a5 commit d1dc1d9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doomsday/client/src/audio/s_environ.cpp
Expand Up @@ -164,6 +164,9 @@ static void findBspLeafsAffectingSector(GameMap *map, Sector *sec)

foreach(BspLeaf *bspLeaf, map->bspLeafs())
{
// Degenerate BspLeafs never contribute.
if(bspLeaf->isDegenerate()) continue;

// Is this BSP leaf close enough?
if(bspLeaf->sectorPtr() == sec || // leaf is IN this sector
(bspLeaf->poly().center().x > affectionBounds.minX &&
Expand Down

0 comments on commit d1dc1d9

Please sign in to comment.