ELEC2645 (2018/19) / Mbed 2 deprecated el17cd

Dependencies:   mbed

Revision:
17:3c9672c6e532
Parent:
16:64cd7bc094f9
Child:
18:8256546a3cbf
diff -r 64cd7bc094f9 -r 3c9672c6e532 Game/Game.cpp
--- a/Game/Game.cpp	Sun Mar 31 18:05:01 2019 +0000
+++ b/Game/Game.cpp	Sun Mar 31 18:10:18 2019 +0000
@@ -41,9 +41,9 @@
         {  
             if(playing){
                 if(score < 2500)
-                    cubeVector[c].translate(-coord.x*1.4,0,-2.5-(double)score/1000);
+                    cubeVector[c].translate(-coord.x*1.4,0,-2.5-(float)score/1000);
                 else{
-                    cubeVector[c].translate(-coord.x*1.4,0,(double)-5);
+                    cubeVector[c].translate(-coord.x*1.4,0,(float)-5);
                 }
             }
             for (int i = 0; i < 6; i++){