- made dumpportals CCMD multi-level aware.

This commit is contained in:
Christoph Oelckers 2019-01-29 20:23:18 +01:00
parent 1b37d85ac3
commit 12351ae9bb

View file

@ -468,7 +468,9 @@ void InitPortalGroups(FLevelLocals *Level)
CCMD(dumpportals)
{
auto Level = &level;
for (auto Level : AllLevels())
{
Printf("Portal groups for %s\n", Level->MapName.GetChars());
for (unsigned i = 0; i < Level->portalGroups.Size(); i++)
{
auto p = Level->portalGroups[i];
@ -503,3 +505,4 @@ CCMD(dumpportals)
}
}
}
}