Remove useless Clock

master
NaiJi ✨ 4 years ago
parent 2c31af397c
commit c2a8772129

@ -19,8 +19,6 @@ Game::Game()
int Game::run()
{
clock = std::make_unique<sf::Clock>();
// On the game loop
while (main_window.isOpen())
{

@ -19,7 +19,6 @@ private:
std::unique_ptr<Level> level;
// SFML entities
std::unique_ptr<sf::Clock> clock;
sf::RenderWindow main_window;
/// Convert pressed key into a game direction

Loading…
Cancel
Save