Skip to content

Commit

Permalink
Fixed: Planeglows could not be used independently from dynamic lights.
Browse files Browse the repository at this point in the history
  • Loading branch information
danij committed Mar 29, 2008
1 parent 708c7a0 commit 97ba009
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
15 changes: 11 additions & 4 deletions doomsday/engine/portable/src/r_lumobjs.c
Expand Up @@ -852,7 +852,7 @@ static void linkLuminous(void)
*/
void LO_InitForSubsector(subsector_t *ssec)
{
if(!useDynLights)
if(!useDynLights && !useWallGlow)
return; // Disabled.

// First make sure we know which lumobjs are contacting us.
Expand Down Expand Up @@ -942,15 +942,22 @@ void LO_AddLuminousMobjs(void)
{
uint i;
sector_t *seciter;
mobj_t *iter;

if(!useDynLights && !useWallGlow)
return;

BEGIN_PROF( PROF_DYN_INIT_ADD );

for(i = 0, seciter = sectors; i < numSectors; seciter++, ++i)
{
for(iter = seciter->mobjList; iter; iter = iter->sNext)
if(useDynLights)
{
LO_AddLuminous(iter);
mobj_t *iter;

for(iter = seciter->mobjList; iter; iter = iter->sNext)
{
LO_AddLuminous(iter);
}
}

// If the segs of this subsector are affected by glowing planes we need
Expand Down
4 changes: 2 additions & 2 deletions doomsday/engine/portable/src/rend_dyn.c
Expand Up @@ -565,7 +565,7 @@ uint DL_ProcessSegSection(seg_t *seg, float bottom, float top,
{
seglumobjiterparams_t params;

if(!useDynLights)
if(!useDynLights && !useWallGlow)
return 0; // Disabled.

if(!seg || !seg->subsector)
Expand Down Expand Up @@ -642,7 +642,7 @@ uint DL_ProcessSubSectorPlane(subsector_t *ssec, uint plane)
float height;
boolean isLit;

if(!useDynLights)
if(!useDynLights && !useWallGlow)
return 0; // Disabled.

if(!ssec)
Expand Down

0 comments on commit 97ba009

Please sign in to comment.