Kajetan Johannes Hammerle 4 жил өмнө
parent
commit
3de5abb586
1 өөрчлөгдсөн 2 нэмэгдсэн , 2 устгасан
  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()) {