force the gui to be aware of turn change earlier...
...so it happens before healing animations, fix bug 16049
This commit is contained in:
parent
a18869dce0
commit
ccf359fbd8
3 changed files with 8 additions and 4 deletions
|
@ -7,6 +7,8 @@ Version 1.9.0+svn:
|
|||
* New animations: Merman Hunter ranged animation and defence, Warrior se
|
||||
attack and defence.
|
||||
* New portraits: Inferno Drake
|
||||
* Multiplayer:
|
||||
* Side vision is now switched before the healing phase of the turn (only visible in hotseat)
|
||||
* Units
|
||||
* Added the Ghast unit from DiD to core with new base frame and animations.
|
||||
* WML Engine:
|
||||
|
|
|
@ -552,6 +552,12 @@ void play_controller::do_init_side(const unsigned int team_index){
|
|||
game_events::fire("side " + side_num + " turn " + turn_num);
|
||||
}
|
||||
|
||||
if(current_team.is_human()) {
|
||||
gui_->set_team(player_number_ - 1);
|
||||
gui_->recalculate_minimap();
|
||||
gui_->invalidate_all();
|
||||
gui_->draw(true,true);
|
||||
}
|
||||
// We want to work out if units for this player should get healed,
|
||||
// and the player should get income now.
|
||||
// Healing/income happen if it's not the first turn of processing,
|
||||
|
|
|
@ -665,10 +665,6 @@ void playsingle_controller::before_human_turn(bool save)
|
|||
browse_ = false;
|
||||
linger_ = false;
|
||||
|
||||
gui_->set_team(player_number_ - 1);
|
||||
gui_->recalculate_minimap();
|
||||
gui_->invalidate_all();
|
||||
gui_->draw(true,true);
|
||||
|
||||
ai::manager::raise_turn_started();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue