From: Alma Dejus Date: Mon, 11 Dec 2023 08:46:24 +0000 (+0100) Subject: cleanup in main, Alma och Malin X-Git-Url: https://gitweb.forssennils.se/?a=commitdiff_plain;h=6990524598a1a2fe18712a42091c0ca87a391332;p=TDDC76_proj.git cleanup in main, Alma och Malin --- 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(); }