Skip to content

Commit

Permalink
Geometry change notifications kludge
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Jan 12, 2005
1 parent 72be780 commit b4ee68a
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion doomsday/Src/r_main.c
Expand Up @@ -338,6 +338,14 @@ void R_NewSharpWorld(void)
{
sector = SECTOR_PTR(i);
secinfo[i].oldfloor[0] = secinfo[i].oldfloor[1];

// Geometry change?
// FIXME: There has to be better place to do this...
if(secinfo[i].oldfloor[1] != sector->floorheight)
{
P_FloorChanged(sector);
}

secinfo[i].oldfloor[1] = sector->floorheight;

if(abs(secinfo[i].oldfloor[0] - secinfo[i].oldfloor[1]) >=
Expand All @@ -348,7 +356,15 @@ void R_NewSharpWorld(void)
}

secinfo[i].oldceil[0] = secinfo[i].oldceil[1];
secinfo[i].oldceil[1] = sector->ceilingheight;

// Geometry change?
// FIXME: There has to be better place to do this...
if(secinfo[i].oldceil[1] != sector->ceilingheight)
{
P_CeilingChanged(sector);
}

secinfo[i].oldceil[1] = sector->ceilingheight;

if(abs(secinfo[i].oldceil[0] - secinfo[i].oldceil[1]) >=
MAX_SMOOTH_PLANE_MOVE)
Expand Down

0 comments on commit b4ee68a

Please sign in to comment.