diff --git a/src/g_level.cpp b/src/g_level.cpp index a962d51961..8934ab3c20 100644 --- a/src/g_level.cpp +++ b/src/g_level.cpp @@ -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))); } } }