mirror of https://github.com/ZDoom/gzdoom.git
- made dumpportals CCMD multi-level aware.
This commit is contained in:
parent
1b37d85ac3
commit
12351ae9bb
|
@ -468,7 +468,9 @@ void InitPortalGroups(FLevelLocals *Level)
|
||||||
|
|
||||||
CCMD(dumpportals)
|
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++)
|
for (unsigned i = 0; i < Level->portalGroups.Size(); i++)
|
||||||
{
|
{
|
||||||
auto p = Level->portalGroups[i];
|
auto p = Level->portalGroups[i];
|
||||||
|
@ -503,3 +505,4 @@ CCMD(dumpportals)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue