- removed token 'mode' because it isn't used anywhere and clashed with some actor properties.
- fixed uninitialized counter variable in DECORATE parser. - allow dottable_id of xxx.color so that the property parser can parse 'powerup.color'. - fixed crash with actor replacement in script compiler. - add the lump number to tree nodes because parts of the property parser need that to make decisions. - removed test stuff. - converted inventory.txt, player.txt and specialspot.txt to ZSCRIPT. These were the minimal files required to allow actor.txt to parse successfully. - removed the converted files from the DECORATE include list so that these are entirely handled by ZSCRIPT now.
This commit is contained in:
parent
a72fbb771f
commit
433bf46010
18 changed files with 601 additions and 844 deletions
|
|
@ -211,6 +211,16 @@ dottable_id(X) ::= dottable_id(A) DOT IDENTIFIER(B).
|
|||
A->AppendSibling(id2);
|
||||
X = A; /*X-overwrites-A*/
|
||||
}
|
||||
// a bit of a hack to allow the 'color' token to be used inside default properties.
|
||||
// as a variable name it is practically meaningless because it cannot defined
|
||||
// as such anywhere so it will always produce an error during processing.
|
||||
dottable_id(X) ::= dottable_id(A) DOT COLOR.
|
||||
{
|
||||
NEW_AST_NODE(Identifier,id2,A);
|
||||
id2->Id = NAME_Color;
|
||||
A->AppendSibling(id2);
|
||||
X = A; /*X-overwrites-A*/
|
||||
}
|
||||
|
||||
/*------ Class Body ------*/
|
||||
// Body is a list of:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue