mirror of
https://github.com/DrBeef/Raze.git
synced 2025-02-01 05:20:43 +00:00
- floatified AlignSlopes
This commit is contained in:
parent
a3d1420426
commit
60e242373c
1 changed files with 3 additions and 5 deletions
|
@ -2188,16 +2188,14 @@ void AlignSlopes(void)
|
|||
if (sect.slopewallofs)
|
||||
{
|
||||
walltype* pWall = sect.firstWall() + sect.slopewallofs;
|
||||
walltype* pWall2 = pWall->point2Wall();
|
||||
if (pWall->twoSided())
|
||||
{
|
||||
auto pNextSector = pWall->nextSector();
|
||||
|
||||
int x = (pWall->wall_int_pos().X + pWall2->wall_int_pos().X) / 2;
|
||||
int y = (pWall->wall_int_pos().Y + pWall2->wall_int_pos().Y) / 2;
|
||||
auto pos = pWall->center();
|
||||
viewInterpolateSector(§);
|
||||
alignflorslope(§, x, y, getflorzofslopeptr(pNextSector, x, y));
|
||||
alignceilslope(§, x, y, getceilzofslopeptr(pNextSector, x, y));
|
||||
alignflorslope(§, DVector3(pos, getflorzofslopeptrf(pNextSector, pos)));
|
||||
alignceilslope(§, DVector3(pos, getceilzofslopeptrf(pNextSector, pos)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue