Merge pull request #261 from samisalreadytaken/dev

Misc vscript additions
This commit is contained in:
Blixibon
2024-02-04 15:20:12 -06:00
committed by GitHub
5 changed files with 18 additions and 12 deletions

View File

@@ -118,15 +118,14 @@ class CSimpleCallChainer
function PostScriptExecute()
{
local func;
try {
func = scope[prefix];
} catch(e) {
return;
if ( prefix in scope )
{
local func = scope[prefix];
if ( typeof func == "function" )
{
chain.push(func);
}
}
if (typeof(func) != "function")
return;
chain.push(func);
}
function Call()
@@ -569,4 +568,4 @@ if (developer)
__Documentation.RegisterHelp( "Lerp", "float Lerp(float, float, float)", "" );
__Documentation.RegisterHelp( "SimpleSpline", "float SimpleSpline(float)", "" );
}
)vscript";
)vscript";