Commit 99fca5df authored by Srb František's avatar Srb František
Browse files

another fix #5 . bcs glfwGetKEy is not a const func, the warning said the func...

another fix #5 . bcs glfwGetKEy is not a const func, the warning said the func might be never called. but it is no issue in any wayn, by this i can get rid of that error with no unintention effects
parent 6a1abb5d
......@@ -197,7 +197,7 @@ void Scene::handle_input(GLFWwindow* window)
sonar = Player(PI * 2, player.vision_range * 3 / 5.0f, player.position, 0, 0, 180,white);
}
//simulate game over
if (DEBUG_MODE && glfwGetKey(window, GLFW_KEY_T) == GLFW_PRESS)
if (glfwGetKey(window, GLFW_KEY_T) == GLFW_PRESS && DEBUG_MODE)
{
game_over = true;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment