mirror of
https://github.com/ZDoom/Raze.git
synced 2025-06-01 09:42:27 +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)
|
if (sect.slopewallofs)
|
||||||
{
|
{
|
||||||
walltype* pWall = sect.firstWall() + sect.slopewallofs;
|
walltype* pWall = sect.firstWall() + sect.slopewallofs;
|
||||||
walltype* pWall2 = pWall->point2Wall();
|
|
||||||
if (pWall->twoSided())
|
if (pWall->twoSided())
|
||||||
{
|
{
|
||||||
auto pNextSector = pWall->nextSector();
|
auto pNextSector = pWall->nextSector();
|
||||||
|
|
||||||
int x = (pWall->wall_int_pos().X + pWall2->wall_int_pos().X) / 2;
|
auto pos = pWall->center();
|
||||||
int y = (pWall->wall_int_pos().Y + pWall2->wall_int_pos().Y) / 2;
|
|
||||||
viewInterpolateSector(§);
|
viewInterpolateSector(§);
|
||||||
alignflorslope(§, x, y, getflorzofslopeptr(pNextSector, x, y));
|
alignflorslope(§, DVector3(pos, getflorzofslopeptrf(pNextSector, pos)));
|
||||||
alignceilslope(§, x, y, getceilzofslopeptr(pNextSector, x, y));
|
alignceilslope(§, DVector3(pos, getceilzofslopeptrf(pNextSector, pos)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue