mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 19:53:48 +00:00
Console Refactor
This commit is contained in:
parent
626de074cc
commit
89b0c7f73b
89 changed files with 1883 additions and 1553 deletions
|
|
@ -20,6 +20,7 @@
|
|||
// IN THE SOFTWARE.
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
#include "script.h"
|
||||
#include "platform/platform.h"
|
||||
#include "platform/threads/mutex.h"
|
||||
#include "console/simBase.h"
|
||||
|
|
@ -36,8 +37,6 @@
|
|||
#include "platform/profiler.h"
|
||||
#include "math/mMathFn.h"
|
||||
|
||||
extern ExprEvalState gEvalState;
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
|
|
@ -341,9 +340,9 @@ SimObject* findObject(const char* name)
|
|||
|
||||
if (c == '%')
|
||||
{
|
||||
if (gEvalState.getStackDepth())
|
||||
if (!Con::getFrameStack().empty())
|
||||
{
|
||||
Dictionary::Entry* ent = gEvalState.getCurrentFrame().lookup(StringTable->insert(name));
|
||||
Dictionary::Entry* ent = Con::getCurrentStackFrame()->lookup(StringTable->insert(name));
|
||||
|
||||
if (ent)
|
||||
return Sim::findObject(ent->getIntValue());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue