Add wad name to mapchecksum output

This commit is contained in:
Randy Heit 2015-03-26 22:01:57 -05:00
parent 93c7f4b4b5
commit ee9f64427c

View file

@ -595,12 +595,13 @@ CCMD (mapchecksum)
else
{
map->GetChecksum(cksum);
const char *wadname = Wads.GetWadName(Wads.GetLumpFile(map->lumpnum));
delete map;
for (size_t j = 0; j < sizeof(cksum); ++j)
{
Printf("%02X", cksum[j]);
}
Printf(" // %s\n", argv[i]);
Printf(" // %s %s\n", wadname, argv[i]);
}
}
}