mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-11 18:40:08 +00:00
move some code out of play_controller to game_board
This commit is contained in:
parent
49a7d0b140
commit
97f99407c1
@ -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_);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user