Skip to content

Commit

Permalink
add debug output
Browse files Browse the repository at this point in the history
to investigate #2149
  • Loading branch information
gfgtdf authored and GregoryLundberg committed Nov 30, 2017
1 parent c3d6b3f commit 7a239e4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/playsingle_controller.cpp
Expand Up @@ -113,7 +113,8 @@ playsingle_controller::~playsingle_controller()
ai::manager::clear_ais() ;
}

void playsingle_controller::init_gui(){
void playsingle_controller::init_gui()
{
LOG_NG << "Initializing GUI... " << (SDL_GetTicks() - ticks()) << "\n";
play_controller::init_gui();

Expand All @@ -128,6 +129,7 @@ void playsingle_controller::init_gui(){
if(map_start_.valid())
{
gui_->scroll_to_tile(map_start_, game_display::WARP);
LOG_NG << "Found good stored ui location " << map_start_ << "\n";
}
else
{
Expand All @@ -138,6 +140,10 @@ void playsingle_controller::init_gui(){
map_location loc(gamestate().board_.map().starting_position(scroll_team));
if ((loc.x >= 0) && (loc.y >= 0)) {
gui_->scroll_to_tile(loc, game_display::WARP);
LOG_NG << "Found bad stored ui location " << map_start_ << " using side starting location " << loc << "\n";
}
else {
LOG_NG << "Found bad stored ui location\n";
}
}

Expand Down

0 comments on commit 7a239e4

Please sign in to comment.