mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-01 19:43:49 +00:00
Shifted CodeBlock::smCurrentLineText to be a const char* so it's use is clearer
Ensured CodeBlock::smCurrentLineText is cleared at the end of execution Tweaked and cleaned up the context lines passed along for further debugging data in the event of a script assert
This commit is contained in:
parent
171211c4e2
commit
9084e81bc1
11 changed files with 107 additions and 23 deletions
|
|
@ -1485,7 +1485,7 @@ bool ActionMap::processAction(const InputEventInfo* pEvent)
|
|||
if (pNode->makeConsoleCommand)
|
||||
{
|
||||
StringTableEntry objectName = getName() != StringTable->EmptyString() ? getName() : getInternalName();
|
||||
String context = String::ToString("%s, Object: %s", Platform::makeRelativePathName(getFilename(), NULL), objectName);
|
||||
String context = String::ToString("%s\nObject: %s", Platform::makeRelativePathName(getFilename(), NULL), objectName);
|
||||
Con::evaluate(pNode->makeConsoleCommand, false, context);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue