Fix very wrong™ fract() implementation.

This commit is contained in:
Mari the Deer 2022-11-28 17:54:45 +01:00
commit 9ce5ee591f
2 changed files with 3 additions and 3 deletions

View file

@ -1,3 +1,3 @@
[default]
SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r646 \cu(Mon 28 Nov 17:11:57 CET 2022)\c-";
SWWM_SHORTVER="\cw1.3pre r646 \cu(2022-11-28 17:11:57)\c-";
SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r647 \cu(Mon 28 Nov 17:54:45 CET 2022)\c-";
SWWM_SHORTVER="\cw1.3pre r647 \cu(2022-11-28 17:54:45)\c-";

View file

@ -253,7 +253,7 @@ Class SWWMUtility
// thanks zscript
static clearscope double fract( double a )
{
return (a<0)?(a+floor(a)):(a-floor(a));
return a-floor(a);
}
static clearscope double lerp( double a, double b, double theta )