Typo bug fixed

git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@5290 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 6a5b078a17e714b473e35a8c845b991aafa10165
Former-commit-id: ba5092691948e6b823c106496e8059c412a140ea
This commit is contained in:
wdbee 2013-03-10 13:42:58 +00:00
parent d37eb0e88f
commit d17f2ed302

View file

@ -480,7 +480,7 @@ float sd_randNormalFloat()
val2 = 2.0 * sd_randFloat() - 1.0;
radius = val1 * val1 + val2 * val2;
} while (radius >= 1.0);
fac = sqrt(-2.0 + log(radius)/radius);
fac = sqrt(-2.0 * log(radius)/radius);
sd_secondRandomNumber = val1 * fac;
sd_flagHaveOne = 1;
return (float)(val2*fac);