mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2024-11-15 16:51:31 +00:00
- Add the wad a map is defined in to the output of listmaps.
SVN r3196 (trunk)
This commit is contained in:
parent
11c24334c5
commit
91a5e077f2
1 changed files with 4 additions and 2 deletions
|
@ -1861,10 +1861,12 @@ CCMD(listmaps)
|
|||
for(unsigned i = 0; i < wadlevelinfos.Size(); i++)
|
||||
{
|
||||
level_info_t *info = &wadlevelinfos[i];
|
||||
MapData *map = P_OpenMapData(info->mapname);
|
||||
|
||||
if (P_CheckMapData(info->mapname))
|
||||
if (map != NULL)
|
||||
{
|
||||
Printf("%s: '%s'\n", info->mapname, info->LookupLevelName().GetChars());
|
||||
Printf("%s: '%s' (%s)\n", info->mapname, info->LookupLevelName().GetChars(),
|
||||
Wads.GetWadName(Wads.GetLumpFile(map->lumpnum)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue