mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-11 07:11:54 +00:00
- made dumpportals CCMD multi-level aware.
This commit is contained in:
parent
1b37d85ac3
commit
12351ae9bb
1 changed files with 27 additions and 24 deletions
|
@ -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)
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue