Skip to content

Commit

Permalink
add log for modify_placing
Browse files Browse the repository at this point in the history
  • Loading branch information
gfgtdf committed Jun 11, 2015
1 parent e3010b7 commit 2a0a07d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/play_controller.cpp
Expand Up @@ -362,6 +362,10 @@ void play_controller::place_sides_in_preferred_locations()

int num_pos = map_.num_valid_starting_positions();

for(int p = 1; p <= num_pos; ++p) {
const map_location& pos = map_.starting_position(p);
LOG_NG << "starting pos for side " << p << " was at " << pos << "\n";
}
int side_num = 1;
BOOST_FOREACH(const config &side, level_.child_range("side"))
{
Expand Down Expand Up @@ -389,6 +393,10 @@ void play_controller::place_sides_in_preferred_locations()
LOG_NG << "placing side " << i->side << " at " << i->pos << '\n';
}
}
for(int p = 1; p <= num_pos; ++p) {
const map_location& pos = map_.starting_position(p);
LOG_NG << "starting pos for side " << p << " is now at " << pos << "\n";
}
}

void play_controller::objectives(){
Expand Down

0 comments on commit 2a0a07d

Please sign in to comment.