mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-01-12 14:57:56 +03:00
Tidy up CSimpleCallChainer::PostScriptExecute()
This commit is contained in:
parent
a6f9d0a0e2
commit
f1123ed1e7
@ -118,15 +118,14 @@ class CSimpleCallChainer
|
|||||||
|
|
||||||
function PostScriptExecute()
|
function PostScriptExecute()
|
||||||
{
|
{
|
||||||
local func;
|
if ( prefix in scope )
|
||||||
try {
|
{
|
||||||
func = scope[prefix];
|
local func = scope[prefix];
|
||||||
} catch(e) {
|
if ( typeof func == "function" )
|
||||||
return;
|
{
|
||||||
|
chain.push(func);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (typeof(func) != "function")
|
|
||||||
return;
|
|
||||||
chain.push(func);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function Call()
|
function Call()
|
||||||
@ -569,4 +568,4 @@ if (developer)
|
|||||||
__Documentation.RegisterHelp( "Lerp", "float Lerp(float, float, float)", "" );
|
__Documentation.RegisterHelp( "Lerp", "float Lerp(float, float, float)", "" );
|
||||||
__Documentation.RegisterHelp( "SimpleSpline", "float SimpleSpline(float)", "" );
|
__Documentation.RegisterHelp( "SimpleSpline", "float SimpleSpline(float)", "" );
|
||||||
}
|
}
|
||||||
)vscript";
|
)vscript";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user