mirror of
https://github.com/DrBeef/Raze.git
synced 2025-02-07 16:31:17 +00:00
- fixed validation issue with maps that have a wall with nextwall == -1 and nextsector > -1.
In this case the bogus nextsector was not reset.
This commit is contained in:
parent
21fddd6c54
commit
de1cbb9ee0
2 changed files with 7 additions and 4 deletions
|
@ -139,9 +139,8 @@ void vertexscan(walltype* startwall, func mark)
|
||||||
while (true)
|
while (true)
|
||||||
{
|
{
|
||||||
auto thelastwall = wal->lastWall();
|
auto thelastwall = wal->lastWall();
|
||||||
// thelastwall can be null here if the map is bogus.
|
// thelastwall can be null here if the map is bogus.
|
||||||
if (!thelastwall || !thelastwall->twoSided()) break;
|
if (!thelastwall || thelastwall->nextwall < 0) break;
|
||||||
|
|
||||||
wal = thelastwall->nextWall();
|
wal = thelastwall->nextWall();
|
||||||
if (walbitmap.Check(wall.IndexOf(wal))) break;
|
if (walbitmap.Check(wall.IndexOf(wal))) break;
|
||||||
mark(wal);
|
mark(wal);
|
||||||
|
|
|
@ -831,7 +831,11 @@ void setWallSectors()
|
||||||
wal.nextsector = wal.nextWall()->sector;
|
wal.nextsector = wal.nextWall()->sector;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else wal.nextwall = -1;
|
else
|
||||||
|
{
|
||||||
|
wal.nextwall = -1;
|
||||||
|
wal.nextsector = -1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue