Nivekk / KOS

Fully programmable autopilot mod for KSP.
Other
80 stars 30 forks source link

(v0.85) colon term (pitch) used with arithmetic in a "set" command requires parens. #167

Open Dunbaratu opened 10 years ago

Dunbaratu commented 10 years ago

This syntax gives an expression error:

set x to rot1:pitch - rot2:pitch.

While making this change to it causes it to parse correctly:

set x to ( rot1:pitch - rot2:pitch ).

Somehow the parens are actually required for it to work. That seems wrong.

Nivekk commented 10 years ago

This seems to be an issue with order of operations, it's trying to process it as though it were ((rot1:pitch) - rot2):pitch

This is related to #166