- Print named script's names for the scriptstat console command.

SVN r3374 (trunk)
This commit is contained in:
Randy Heit 2012-02-21 19:27:30 +00:00
parent 7b5612c45a
commit 67bbc0f95c

View file

@ -7375,7 +7375,14 @@ void DACSThinker::DumpScriptStatus ()
while (script != NULL)
{
Printf ("%d: %s\n", script->script, stateNames[script->state]);
if (script->script < 0)
{
Printf("\"%s\": %s\n", FName(ENamedName(-script->script)).GetChars(), stateNames[script->state]);
}
else
{
Printf("%d: %s\n", script->script, stateNames[script->state]);
}
script = script->next;
}
}