From: Ash Tyndall Date: Sat, 22 Oct 2011 02:02:27 +0000 (+0800) Subject: (no commit message) X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=acf576865458f10edf9526ee3abd8c36142a4e14;p=atyndall%2Fcits2231.git --- diff --git a/scene.c b/scene.c index 3a52435..1b7c988 100644 --- a/scene.c +++ b/scene.c @@ -315,11 +315,15 @@ void motion(int x, int y) { } else { 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; + + if ( scaling != 0 ) { + + 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; + + } starty = y; }