Explorar o código

missing float f

Kajetan Johannes Hammerle %!s(int64=3) %!d(string=hai) anos
pai
achega
3de5abb586
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      Game.cpp

+ 2 - 2
Game.cpp

@@ -63,10 +63,10 @@ void Game::tick() {
     oldHeight = height;
     oldHeight = height;
     oldPosition = position;
     oldPosition = position;
     if(up.isDown()) {
     if(up.isDown()) {
-        height -= 1.0;
+        height -= 1.0f;
     }
     }
     if(down.isDown()) {
     if(down.isDown()) {
-        height += 1.0;
+        height += 1.0f;
     }
     }
     const float speed = 2.5f;
     const float speed = 2.5f;
     if(left.isDown()) {
     if(left.isDown()) {