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