From: Ash Tyndall Date: Sat, 22 Oct 2011 02:01:46 +0000 (+0800) Subject: (no commit message) X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=972ef956d34dd758f6d3fe9234728eb422d28869;p=atyndall%2Fcits2231.git --- diff --git a/scene.c b/scene.c index 565fd03..3a52435 100644 --- a/scene.c +++ b/scene.c @@ -313,13 +313,13 @@ void motion(int x, int y) { if ( diff < 0 ) { scaling = (diff - -((float)height/2))/(0 - -((float)height/2)); } else { - scaling = scaling * diff; + scaling = diff; } printf("Diff is %f, Scaling by %f on all axii\n", diff, scaling); - sceneObjs[curObject].scale[0] = scaling; - sceneObjs[curObject].scale[1] = scaling; - sceneObjs[curObject].scale[2] = scaling; + sceneObjs[curObject].scale[0] *= scaling; + sceneObjs[curObject].scale[1] *= scaling; + sceneObjs[curObject].scale[2] *= scaling; starty = y; }