- print proper information about non-actor mapthings.

This commit is contained in:
Christoph Oelckers 2015-04-03 22:23:42 +02:00
commit 4f7ec3ad89
4 changed files with 14 additions and 5 deletions

View file

@ -113,8 +113,19 @@ CCMD (dumpmapthings)
for (unsigned i = 0; i < infos.Size (); ++i)
{
Printf ("%6d %s\n",
infos[i]->Key, infos[i]->Value.Type->TypeName.GetChars());
if (infos[i]->Value.Type != NULL)
{
Printf("%6d %s\n", infos[i]->Key, infos[i]->Value.Type->TypeName.GetChars());
}
else if (infos[i]->Value.Special > 0)
{
Printf("%6d %s\n", infos[i]->Key, SpecialMapthingNames[infos[i]->Value.Special - 1]);
}
else
{
Printf("%6d none", infos[i]->Key);
}
}
}
}