- added a warning for multiple sectors referencing the same walls.

RR E3L1 contains such a setup, for example.
This commit is contained in:
Christoph Oelckers 2021-12-08 21:09:47 +01:00
parent 14b8eda436
commit 177e84881e

View file

@ -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(&sect))
{
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(&sect));
}
i++;
}