Skip to content

Commit

Permalink
Bias lights added to the Light definition
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Jan 12, 2005
1 parent a4b4e4e commit fbf472a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions doomsday/Src/rend_dyn.c
Expand Up @@ -871,20 +871,20 @@ void DL_AddLuminous(mobj_t *thing)
def = (ded_light_t *) thing->state->light;
if(def->size)
cf.size = def->size;
if(def->xoffset)
if(def->offset[VX])
{
// Set the x offset here.
lum->xOff = cf.xoffset = def->xoffset;
lum->xOff = cf.xoffset = def->offset[VX];
}
if(def->yoffset)
cf.yoffset = def->yoffset;
if(def->offset[VY])
cf.yoffset = def->offset[VY];
lum->flags |= def->flags;
}

lum->patch = lump;
lum->center =
spritelumps[lump].topoffset - FIX2FLT(lum->thing->floorclip +
R_GetBobOffset(lum->thing)) -
spritelumps[lump].topoffset -
FIX2FLT(lum->thing->floorclip + R_GetBobOffset(lum->thing)) -
cf.yoffset;

// Will the sprite be allowed to go inside the floor?
Expand Down

0 comments on commit fbf472a

Please sign in to comment.