From 6990524598a1a2fe18712a42091c0ca87a391332 Mon Sep 17 00:00:00 2001 From: Alma Dejus Date: Mon, 11 Dec 2023 09:46:24 +0100 Subject: [PATCH] cleanup in main, Alma och Malin --- src/_main.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/_main.cc b/src/_main.cc index 0204bc0..f6a529b 100644 --- a/src/_main.cc +++ b/src/_main.cc @@ -68,8 +68,7 @@ int main () window.display(); // Make game run at constant fps - // std::cout << "frametime: " << game_clock.getElapsedTime().asSeconds() << std::endl; - sf::sleep(sf::milliseconds(1000.0 / FPS) - game_clock.getElapsedTime()); + sf::sleep(sf::milliseconds(1000.0/FPS) - game_clock.getElapsedTime()); game_context.time = game_clock.restart(); } -- 2.30.2