Skip to content

Commit

Permalink
Visfloor/ceilingoffset added to visfloor/ceiling
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Jun 6, 2003
1 parent ceb4b02 commit 2025384
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions doomsday/Src/r_world.c
Expand Up @@ -1159,20 +1159,28 @@ void R_UpdatePlanes(void)
R_SetSectorLinks(sec);
// Floor height.
if(!sin->linkedfloor)
sin->visfloor = FIX2FLT(sec->floorheight);
{
sin->visfloor = FIX2FLT(sec->floorheight)
+ sin->visflooroffset;
}
else
{
sin->visfloor = FIX2FLT(R_GetLinkedSector
(sin->linkedfloor, true)->floorheight);
}


// Ceiling height.
if(!sin->linkedceiling)
sin->visceiling = FIX2FLT(sec->ceilingheight);
{
sin->visceiling = FIX2FLT(sec->ceilingheight)
+ sin->visceilingoffset;
}
else
{
sin->visceiling = FIX2FLT(R_GetLinkedSector
(sin->linkedceiling, false)->ceilingheight);
}
}
}
}

Expand Down

0 comments on commit 2025384

Please sign in to comment.