Skip to content

Commit 50ee960

Browse files
authored
Merge pull request #1613 from Azaezel/alpha41/fileExecTrace
add executing file reporting to the trace(true/false) script command
2 parents 9f29bee + f78f360 commit 50ee960

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Engine/source/console/torquescript/runtime.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,8 @@ namespace TorqueScript
402402
#ifdef TORQUE_DEBUG
403403
Con::printf("Executing %s.", scriptFileName);
404404
#endif
405+
if (Con::gTraceOn)
406+
Con::printf("Executing %s.", scriptFileName);
405407

406408
CodeBlock *newCodeBlock = new CodeBlock();
407409
StringTableEntry name = StringTable->insert(scriptFileName);

0 commit comments

Comments
 (0)