Quote:
Originally Posted by godofwarares
Adds if the integer is positive, subtracts if negative . . . Some stupid unneeded operator ._.
|
Gramatically speaking, what you just said would be adding the absolute value, because subtracting a number when it is negative is like adding its positive, and actually, that is NOT what it is doing, its simply adding the negative of a variable.
In this case, this.speed +=- mousewheeldelta is better written as
this.speed -= mousewheeldelta
