Skip to content

Commit

Permalink
move some code out of play_controller to game_board
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeck88 committed Jun 9, 2014
1 parent 49a7d0b commit 97f9940
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/play_controller.cpp
Expand Up @@ -796,11 +796,8 @@ void play_controller::finish_side_turn(){

resources::whiteboard->on_finish_side_turn(player_number_);

BOOST_FOREACH(unit & uit, gameboard_.units_) {
if (uit.side() == player_number_) {
uit.end_turn();
}
}
gameboard_.end_turn(player_number_);

// Clear shroud, in case units had been slowed for the turn.
actions::clear_shroud(player_number_);

Expand Down

0 comments on commit 97f9940

Please sign in to comment.