added a missing return statement in the 'any-dimension' bspline example code (which...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 14 Mar 2007 08:48:00 +0000 (08:48 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 14 Mar 2007 08:48:00 +0000 (08:48 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6969 d7cf8633-e32d-0410-b094-e92efae38249

curves.c

index f0b8b29..de3f423 100644 (file)
--- a/curves.c
+++ b/curves.c
@@ -35,6 +35,7 @@ double bsplinesample(int dimensions, double t, double *param)
        double o = 0;
        for (i = 0;i < dimensions + 1;i++)
                o += param[i] * factorial(dimensions)/(factorial(i)*factorial(dimensions-i)) * pow(t, i) * pow(1 - t, dimensions - i);
+       return o;
 }
 */