Remove useless Clock
This commit is contained in:
parent
2c31af397c
commit
c2a8772129
2
game.cpp
2
game.cpp
|
@ -19,8 +19,6 @@ Game::Game()
|
||||||
|
|
||||||
int Game::run()
|
int Game::run()
|
||||||
{
|
{
|
||||||
clock = std::make_unique<sf::Clock>();
|
|
||||||
|
|
||||||
// On the game loop
|
// On the game loop
|
||||||
while (main_window.isOpen())
|
while (main_window.isOpen())
|
||||||
{
|
{
|
||||||
|
|
1
game.h
1
game.h
|
@ -19,7 +19,6 @@ private:
|
||||||
std::unique_ptr<Level> level;
|
std::unique_ptr<Level> level;
|
||||||
|
|
||||||
// SFML entities
|
// SFML entities
|
||||||
std::unique_ptr<sf::Clock> clock;
|
|
||||||
sf::RenderWindow main_window;
|
sf::RenderWindow main_window;
|
||||||
|
|
||||||
/// Convert pressed key into a game direction
|
/// Convert pressed key into a game direction
|
||||||
|
|
Loading…
Reference in New Issue