fix most remaining bugs

This commit is contained in:
Lephe 2019-10-02 07:17:46 +02:00
parent eaaee18bc7
commit 0189d7f372
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
1 changed files with 5 additions and 1 deletions

View File

@ -15,7 +15,7 @@ class Context:
window.
"""
self.vars = { name: 0 for name in "MABCDEFxy" }
self.vars = { name: 0 for name in "MABCDEF" }
self.w = window
self.x = float(0)
@ -172,6 +172,10 @@ class Context:
elif n.type == N.VAR:
var = n.args[0]
if var == "x":
return self.x
if var == "y":
return self.y
return self.vars[var]
elif n.type == N.CONST: