浏览代码

missing float f

Kajetan Johannes Hammerle 3 年之前
父节点
当前提交
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()) {