Commit aacf27d1 authored by louiz’'s avatar louiz’

Little fix in game_client

parent 0bc233bd
...@@ -18,7 +18,8 @@ GameClient::GameClient(const std::shared_ptr<Screen>& screen): ...@@ -18,7 +18,8 @@ GameClient::GameClient(const std::shared_ptr<Screen>& screen):
screen(screen), screen(screen),
camera(this, this->screen.get()), camera(this, this->screen.get()),
hud(this, this->screen.get()), hud(this, this->screen.get()),
debug_hud(this, this->screen.get()) debug_hud(this, this->screen.get()),
team(0)
{ {
this->turn_handler.set_next_turn_callback(std::bind(&GameClient::on_next_turn, this->turn_handler.set_next_turn_callback(std::bind(&GameClient::on_next_turn,
this, ph::_1)); this, ph::_1));
...@@ -120,9 +121,9 @@ void GameClient::run() ...@@ -120,9 +121,9 @@ void GameClient::run()
ticks += utils::get_number_of_ticks(dt); ticks += utils::get_number_of_ticks(dt);
for (; ticks > 0; --ticks) for (; ticks > 0; --ticks)
{ {
this->graphical_tick();
if (!this->tick()) if (!this->tick())
break ; break ;
this->graphical_tick();
} }
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment