mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-01 19:43:49 +00:00
minor cleanups for https://github.com/TorqueGameEngines/Torque3D/pull/1672
for context Strings, use c_str(), for triggers, use Con::getCurrentScriptModulePath() as otherwise, the "%this =" and "%obj=" injections will be treated as within the global scope. which is not allowed.
This commit is contained in:
parent
5981154102
commit
627b9bc076
4 changed files with 11 additions and 29 deletions
|
|
@ -1486,7 +1486,7 @@ bool ActionMap::processAction(const InputEventInfo* pEvent)
|
|||
{
|
||||
StringTableEntry objectName = getName() != StringTable->EmptyString() ? getName() : getInternalName();
|
||||
String context = String::ToString("%s\nObject: %s", Platform::makeRelativePathName(getFilename(), NULL), objectName);
|
||||
Con::evaluate(pNode->makeConsoleCommand, false, context);
|
||||
Con::evaluate(pNode->makeConsoleCommand, false, context.c_str());
|
||||
}
|
||||
}
|
||||
else if (pNode->flags & Node::Held)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue