|
@@ -376,15 +376,7 @@ namespace NTERA.Engine.Runtime
|
|
|
|
|
|
case "call":
|
|
case "call":
|
|
string functionName = expressionNode["target"];
|
|
string functionName = expressionNode["target"];
|
|
- if (functionName == "__INLINEIF") {
|
|
|
|
- // For syntax like \@THIRD_PERSON?Third Person#Second Person\@
|
|
|
|
- var node = expressionNode.GetSubtype("parameters");
|
|
|
|
- bool condition = ComputeExpression(context, node[0]).Real != 0;
|
|
|
|
- if (condition)
|
|
|
|
- return ComputeExpression(context, node[1]);
|
|
|
|
- else
|
|
|
|
- return ComputeExpression(context, node[2]);
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
var function = TotalProcedureDefinitions.FirstOrDefault(func => func.IsReturnFunction && func.Name.Equals(functionName, StringComparison.OrdinalIgnoreCase));
|
|
var function = TotalProcedureDefinitions.FirstOrDefault(func => func.IsReturnFunction && func.Name.Equals(functionName, StringComparison.OrdinalIgnoreCase));
|
|
|
|
|
|
if (function == null)
|
|
if (function == null)
|