From 3f87e23786ecbb7845ee98571acbf8bd9060337c Mon Sep 17 00:00:00 2001 From: Ash Tyndall Date: Sat, 22 Oct 2011 09:33:54 +0800 Subject: [PATCH] --- scene.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.20.1