Skip to content

Commit

Permalink
The interpolated mobj origin cannot yet be used for dynamic lights
Browse files Browse the repository at this point in the history
  • Loading branch information
danij-deng committed Sep 30, 2011
1 parent 74e52ef commit 9223b60
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion doomsday/engine/portable/src/r_lumobjs.c
Expand Up @@ -464,7 +464,12 @@ if(!mat)
l->maxDistance = 0;
l->decorSource = NULL;

// Determine the exact center point of the light.
/**
* Determine the exact center point of the light.
*
* \todo We cannot use smoothing here because this could move the
* light into another subsector (thereby breaking the rules of the
* optimized subsector contact/spread algorithm).
V3_Set(l->pos, 0, 0, 0);
if(mo->state && mo->tics >= 0)
{
Expand All @@ -485,6 +490,8 @@ if(!mat)
// Translate to world-space origin.
V3_Sum(l->pos, l->pos, mo->pos);
*/
V3_Copy(l->pos, mo->pos);

// Don't make too large a light.
if(radius > loMaxRadius)
Expand Down

0 comments on commit 9223b60

Please sign in to comment.