mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 00:41:55 +00:00
- delete duplicated walls in RRRA E1L3 and E1L6.
This commit is contained in:
parent
504bb08a64
commit
1bf654036a
1 changed files with 11 additions and 0 deletions
|
@ -584,6 +584,17 @@ void setWallSectors()
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for (unsigned i = 1; i < wall.Size() - 1; i++)
|
||||||
|
{
|
||||||
|
// two maps in RRRA have this error. Delete one of those 2 walls.
|
||||||
|
if (wall[i].point2 == wall[i + 1].point2)
|
||||||
|
{
|
||||||
|
wall[i].nextwall = -1;
|
||||||
|
wall[i].nextsector = -1;
|
||||||
|
wall[i].point2 = i;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// validate 'nextsector' fields. Some maps have these wrong which can cause render glitches and occasionally even crashes.
|
// validate 'nextsector' fields. Some maps have these wrong which can cause render glitches and occasionally even crashes.
|
||||||
for (auto& wal : walls())
|
for (auto& wal : walls())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue