Fix typo that made function calls be wrapped in parentheses on output.
No biggie, but what's right is right.
This commit is contained in:
@@ -217,7 +217,7 @@ class outscript(object):
|
||||
ret = '(' + expr['t'] + ')'
|
||||
expr = child[0]
|
||||
if expr['nt'] in ('CONST', 'IDENT', 'V++', 'V--', 'VECTOR',
|
||||
'ROTATION', 'LIST', 'FIELD', 'PRINT', 'FUNCTION'):
|
||||
'ROTATION', 'LIST', 'FIELD', 'PRINT', 'FNCALL'):
|
||||
return ret + self.OutExpr(expr)
|
||||
return ret + '(' + self.OutExpr(expr) + ')'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user