- Added native variables to expression evaluator and replaced the previous
handling of actor variables in expressions with it. - Added support for floating point constants to DECORATE expression evaluator. SVN r1271 (trunk)
This commit is contained in:
parent
633154d46f
commit
b9afb78523
28 changed files with 3408 additions and 2459 deletions
|
|
@ -325,9 +325,7 @@ static void ParseActionDef (FScanner &sc, PClass *cls)
|
|||
}
|
||||
}
|
||||
sc.MustGetToken(';');
|
||||
PSymbolActionFunction *sym = new PSymbolActionFunction;
|
||||
sym->SymbolName = funcname;
|
||||
sym->SymbolType = SYM_ActionFunction;
|
||||
PSymbolActionFunction *sym = new PSymbolActionFunction(funcname);
|
||||
sym->Arguments = args;
|
||||
sym->Function = afd->Function;
|
||||
if (hasdefaults)
|
||||
|
|
@ -563,6 +561,10 @@ void ParseActor(FScanner &sc)
|
|||
ParseEnum (sc, &info->Class->Symbols, info->Class);
|
||||
break;
|
||||
|
||||
case TK_Native:
|
||||
ParseVariable (sc, &info->Class->Symbols, info->Class);
|
||||
break;
|
||||
|
||||
case TK_Identifier:
|
||||
// other identifier related checks here
|
||||
case TK_Projectile: // special case: both keyword and property name
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue