From 67bbc0f95ccea4451a0761c1063faac8331ca394 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Tue, 21 Feb 2012 19:27:30 +0000 Subject: [PATCH] - Print named script's names for the scriptstat console command. SVN r3374 (trunk) --- src/p_acs.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/p_acs.cpp b/src/p_acs.cpp index ac18814ea..72f42694e 100644 --- a/src/p_acs.cpp +++ b/src/p_acs.cpp @@ -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; } }