From: Ash Tyndall Date: Sat, 22 Oct 2011 01:33:54 +0000 (+0800) Subject: (no commit message) X-Git-Url: https://git.ucc.asn.au/?p=atyndall%2Fcits2231.git;a=commitdiff_plain;h=3f87e23786ecbb7845ee98571acbf8bd9060337c;hp=521d3ab9808ad5d15a32a9470508b4c687304ae1;ds=sidebyside --- diff --git a/scene.c b/scene.c index d73df53..45a71a9 100644 --- a/scene.c +++ b/scene.c @@ -310,7 +310,7 @@ void motion(int x, int y) { float diff = (y - starty); float scaling; - if ( scaling < 0 ) { + if ( diff < 0 ) { scaling = (x - -height)/(0 - -height); } else { scaling = diff;