View Single Post
psychonic

BAFFLED
Join Date: May 2008
Old 06-10-2016 , 07:42   Re: SourceMod 1.8 Now Stable
#26

Quote:
Originally Posted by Alienmario View Post
Some of my plugins stopped working correctly when compiled under 1.8
I've found the problem to be when interpreting minus sign, for example in
PHP Code:
ScaleVector(vecFwd, -(flDamage scale)); 
or
PHP Code:
ScaleVector(vecFwd, (-flDamage scale)); 
Both would always scale the vector by 0.

The workaround:
PHP Code:
ScaleVector(vecFwd, (flDamage scale * -1)); 
Anyways, glad to have 1.8 finally available!
There was a bug in the float include. This is fixed now in 1.8.5910.

Thanks for the reporting the issue!
psychonic is offline