Fix implied operators under NEW_MATH

This fixes several issues with the implied operators when NEW_MATH is enabled:

* None of the implied operators were returning the correct value, which should be the value
assigned to the LHS.

* The &&=, ||= ad ^^= operators were also operating on uninitialized variables and so behaving
unpredictably.

* The /= and %= operators would crash the client when the RHS was zero, because after outputting
the "Divide by zero" error they would go on to perform the operation anyway.
This commit is contained in:
Kevin Easton
2016-09-29 01:11:29 +10:00
parent a625650c4a
commit 7e3c39a464
2 changed files with 33 additions and 19 deletions

View File

@@ -1,5 +1,7 @@
[Changes 1.2.2]
* Fix "implied" operators (eg. += ) under NEW_MATH. (caf)
* Add /SCANB command to scan for users on the userlist with the BOT flag. (caf)
* Wire up /FSET WHOIS_BOT for users on the userlist with the BOT flag. (caf)