mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 16:44:36 +00:00
Clean up more evals that have local variables are not working correctly.
This commit is contained in:
parent
a30f64506f
commit
7556e403e7
6 changed files with 27 additions and 29 deletions
|
|
@ -262,7 +262,7 @@ function NavEditorGui::findCover(%this)
|
|||
%pos = LocalClientConnection.getControlObject().getPosition();
|
||||
%text = NavEditorOptionsWindow-->TestProperties->CoverPosition.getText();
|
||||
if(%text !$= "")
|
||||
%pos = eval(%text);
|
||||
%pos = eval("return " @ %text);
|
||||
%this.getPlayer().findCover(%pos, NavEditorOptionsWindow-->TestProperties->CoverRadius.getText());
|
||||
}
|
||||
}
|
||||
|
|
@ -275,7 +275,7 @@ function NavEditorGui::followObject(%this)
|
|||
%text = NavEditorOptionsWindow-->TestProperties->FollowObject.getText();
|
||||
if(%text !$= "")
|
||||
{
|
||||
eval("%obj = " @ %text);
|
||||
%obj = eval("return " @ %text);
|
||||
if(!isObject(%obj))
|
||||
toolsMessageBoxOk("Error", "Cannot find object" SPC %text);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue