- Add the wad a map is defined in to the output of listmaps.

SVN r3196 (trunk)
This commit is contained in:
Randy Heit 2011-05-08 16:44:43 +00:00
parent 11c24334c5
commit 91a5e077f2
1 changed files with 4 additions and 2 deletions

View File

@ -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)));
}
}
}