mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 08:51:24 +00:00
- added a warning for multiple sectors referencing the same walls.
RR E3L1 contains such a setup, for example.
This commit is contained in:
parent
14b8eda436
commit
177e84881e
1 changed files with 8 additions and 1 deletions
|
@ -522,13 +522,20 @@ void loadMapBackup(const char* filename)
|
|||
void setWallSectors()
|
||||
{
|
||||
int i = 0;
|
||||
for (auto& wal : walls())
|
||||
{
|
||||
wal.sector = -1;
|
||||
}
|
||||
for(auto& sect : sectors())
|
||||
{
|
||||
sect.dirty = 255;
|
||||
sect.exflags = 0;
|
||||
for (auto& wal : wallsofsector(§))
|
||||
{
|
||||
wal.sector = i;
|
||||
if (wal.sector == -1)
|
||||
wal.sector = i;
|
||||
else
|
||||
Printf("Wall %d referenced by multiple sectors (%d, %d)!\n", wallnum(&wal), wal.sector, sectnum(§));
|
||||
}
|
||||
i++;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue