mirror of
https://github.com/ZDoom/Raze.git
synced 2025-02-15 16:30:45 +00:00
- Blood: relax range check in AlignSlopes.
This now checks the full range of the wall array and if outside just does nothing. E2M6 has a bogus value for this feature that asserted with the old check.
This commit is contained in:
parent
35ce4dca91
commit
b931a960ed
1 changed files with 3 additions and 3 deletions
|
@ -2166,10 +2166,10 @@ void AlignSlopes(void)
|
||||||
{
|
{
|
||||||
for (auto& sect : sector)
|
for (auto& sect : sector)
|
||||||
{
|
{
|
||||||
if (sect.slopewallofs)
|
if (sect.slopewallofs > 0)
|
||||||
{
|
{
|
||||||
walltype* pWall = §.walls[sect.slopewallofs];
|
walltype* pWall = sect.walls.Data() + sect.slopewallofs; // we must evade range checks here - some maps try to slope to a wall outside their own sector.
|
||||||
if (pWall->twoSided())
|
if (pWall >= wall.Data() && pWall <= &wall.Last() && pWall->twoSided())
|
||||||
{
|
{
|
||||||
auto pNextSector = pWall->nextSector();
|
auto pNextSector = pWall->nextSector();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue