From: Ash Tyndall Date: Sat, 22 Oct 2011 01:37:50 +0000 (+0800) Subject: (no commit message) X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=0bbce418109732b9b7a61040b5d8a409ad90f977;p=atyndall%2Fcits2231.git --- diff --git a/scene.c b/scene.c index b4795f1..9e3cb2d 100644 --- a/scene.c +++ b/scene.c @@ -311,8 +311,7 @@ void motion(int x, int y) { float scaling; if ( diff < 0 ) { - scaling = (x - (float)-height)/(0 - (float)-height); - printf("Diff is %f, Scaling by %f on all axii\n", diff, scaling); + scaling = (diff - (float)-height)/(0 - (float)-height); } else { scaling = diff; }