Browse Source

missing float f

Kajetan Johannes Hammerle 3 years ago
parent
commit
3de5abb586
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Game.cpp

+ 2 - 2
Game.cpp

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