Modified event 'turn refresh' so that it fires on turn 1,

...irrespective of healing/income/expense.
This commit is contained in:
Guillaume Melquiond 2009-11-09 19:38:34 +00:00
parent 65ddf88673
commit c02815efcb
2 changed files with 5 additions and 1 deletions

View file

@ -25,7 +25,8 @@ Version 1.7.8-beta1:
* Protect against widgets being smaller as expected causing images with
negative sizes (bug #14525)
* WML engine:
* Added two array element lookup macros, LOOKUP_INDEX and LOOKUP_VALUE.
* Added two array element lookup macros, LOOKUP_INDEX and LOOKUP_VALUE
* Event "turn refresh" is now fired at turn 1 too
* Miscellaneous and bugfixes:
* Using a hotkey to reload during an attack no longer disables the mouse
(http://www.wesnoth.org/forum/viewtopic.php?f=4&t=27616)

View file

@ -527,6 +527,9 @@ void play_controller::do_init_side(const unsigned int team_index){
calculate_healing(player_number_, !skip_replay_);
reset_resting(units_, player_number_);
}
if (!loading_game_) {
game_events::fire("turn refresh");
}