0
0
Fork 0
mirror of https://github.com/ZDoom/gzdoom.git synced 2025-02-27 14:20:59 +00:00

- 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

@ -7374,8 +7374,15 @@ void DACSThinker::DumpScriptStatus ()
DLevelScript *script = Scripts;
while (script != NULL)
{
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;
}
}