From: Ash Tyndall Date: Sat, 22 Oct 2011 01:42:12 +0000 (+0800) Subject: (no commit message) X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=6d1e2a49ce7bcb72838bce2b7962d20570dfa84e;p=atyndall%2Fcits2231.git --- diff --git a/scene.c b/scene.c index 9e3cb2d..fa90a18 100644 --- a/scene.c +++ b/scene.c @@ -311,7 +311,7 @@ void motion(int x, int y) { float scaling; if ( diff < 0 ) { - scaling = (diff - (float)-height)/(0 - (float)-height); + scaling = (diff - -((float)height/2))/(0 - -((float)height/2)); } else { scaling = diff; } @@ -322,6 +322,7 @@ void motion(int x, int y) { sceneObjs[curObject].scale[2] += scaling; } + starty = y; startx = x; break;