From: Ash Tyndall Date: Sat, 22 Oct 2011 02:11:52 +0000 (+0800) Subject: (no commit message) X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=5bf3130b1623b0f243454f7be5a970e6772b18f5;p=atyndall%2Fcits2231.git --- diff --git a/scene.c b/scene.c index 8bf5f29..fcbda4a 100644 --- a/scene.c +++ b/scene.c @@ -314,7 +314,7 @@ void motion(int x, int y) { if ( diff < 0 ) { scaling = map; } else { - scaling = pow(1/map, diff); + scaling = pow(1.0/map, diff); } if ( scaling != 0 ) {