- eliminated the two global FraggleScript variables by moving them into DFraggleThinker.
This commit is contained in:
parent
496dd4ee68
commit
f31b1b92c9
9 changed files with 27 additions and 69 deletions
|
|
@ -467,7 +467,7 @@ void FParser::EvaluateFunction(svalue_t &result, int start, int stop)
|
|||
}
|
||||
|
||||
// all the functions are stored in the global script
|
||||
else if( !(func = global_script->VariableForName (Tokens[start])) )
|
||||
else if( !(func = DFraggleThinker::ActiveThinker->GlobalScript->VariableForName (Tokens[start])) )
|
||||
{
|
||||
script_error("no such function: '%s'\n",Tokens[start]);
|
||||
}
|
||||
|
|
@ -551,7 +551,7 @@ void FParser::OPstructure(svalue_t &result, int start, int n, int stop)
|
|||
svalue_t argv[MAXARGS];
|
||||
|
||||
// all the functions are stored in the global script
|
||||
if( !(func = global_script->VariableForName (Tokens[n+1])) )
|
||||
if( !(func = DFraggleThinker::ActiveThinker->GlobalScript->VariableForName (Tokens[n+1])) )
|
||||
{
|
||||
script_error("no such function: '%s'\n",Tokens[n+1]);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue