Skip to content

Commit

Permalink
Fixed issue of polyobjs not being lit with dynamic lights.
Browse files Browse the repository at this point in the history
  • Loading branch information
danij committed Nov 16, 2008
1 parent aeae8a2 commit 61f02df
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions doomsday/engine/portable/src/rend_dyn.c
Expand Up @@ -151,7 +151,7 @@ static uint newDynlightList(boolean sortBrightestFirst)
newNum = 2;

dynlightLinkLists =
Z_Realloc(dynlightLinkLists, newNum * sizeof(dynlist_t), PU_LEVEL);
Z_Realloc(dynlightLinkLists, newNum * sizeof(dynlist_t), PU_MAP);
numDynlightLinkLists = newNum;
}

Expand Down Expand Up @@ -573,16 +573,16 @@ static uint processSubSector(subsector_t* ssec, surfacelumobjiterparams_t* param
/**
* Process dynamic lights for the specified seg.
*/
uint DL_ProcessSegSection(seg_t* seg, float bottom, float top,
boolean sortBrightestFirst)
uint DL_ProcessSegSection(seg_t* seg, subsector_t* ssec, float bottom,
float top, boolean sortBrightestFirst)
{
sidedef_t* side;
surfacelumobjiterparams_t params;

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

if(!seg || !seg->subsector)
if(!seg || !ssec)
return 0;

side = SEG_SIDEDEF(seg);
Expand All @@ -598,7 +598,7 @@ uint DL_ProcessSegSection(seg_t* seg, float bottom, float top,
params.useTex = 0;
params.isPlane = false;

return processSubSector(seg->subsector, &params);
return processSubSector(ssec, &params);
}

uint DL_ProcessSubSectorPlane(subsector_t* ssec, uint plane)
Expand Down

0 comments on commit 61f02df

Please sign in to comment.