scandum / tintin

TinTin++, aka tt++, is an extensible console MUD client.
https://tintin.mudhalla.net
GNU General Public License v3.0
201 stars 56 forks source link

Modular arithmetic + parentheses gives wrong answer #18

Closed ethorondil closed 3 years ago

ethorondil commented 3 years ago
#math {a} {(1+1)%10}
#MATH: VARIABLE {a} HAS BEEN SET TO {0}.

Obviously, (1 + 1)%10 is 2, not 0.

This is a regression in 2.02.05, I believe.

scandum commented 3 years ago

Thanks, fixed the problem in the beta available at mudhalla.net/tintin-beta.tar.gz.