cleanup in main, Alma och Malin
authorAlma Dejus <almde515@student.liu.se>
Mon, 11 Dec 2023 08:46:24 +0000 (09:46 +0100)
committerAlma Dejus <almde515@student.liu.se>
Mon, 11 Dec 2023 08:46:24 +0000 (09:46 +0100)
src/_main.cc

index 0204bc028b0470a9a6266d56fc9ae6cdfaea35d9..f6a529b61b09cc893056eaca995570330b7c2511 100644 (file)
@@ -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();
 
     }