(no commit message)
[atyndall/cits2231.git] / scene.c
diff --git a/scene.c b/scene.c
index 939594d..b4795f1 100644 (file)
--- a/scene.c
+++ b/scene.c
@@ -311,7 +311,8 @@ void motion(int x, int y) {
         float scaling;\r
 \r
         if ( diff < 0 ) {\r
-          scaling = (x - -height)/(0 - -height);\r
+          scaling = (x - (float)-height)/(0 - (float)-height);\r
+          printf("Diff is %f, Scaling by %f on all axii\n", diff, scaling);\r
         } else {\r
           scaling = diff;\r
         }\r

UCC git Repository :: git.ucc.asn.au