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:
Sei Lisa 2015-02-28 20:37:59 +01:00
parent e30a4ea25d
commit 0ca5a8f5b0

View file

@ -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) + ')'