From c02815efcbe4214c9b94286490b39e990f823974 Mon Sep 17 00:00:00 2001 From: Guillaume Melquiond Date: Mon, 9 Nov 2009 19:38:34 +0000 Subject: [PATCH] Modified event 'turn refresh' so that it fires on turn 1, ...irrespective of healing/income/expense. --- changelog | 3 ++- src/play_controller.cpp | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/changelog b/changelog index 4442735e596..bd08beb7575 100644 --- a/changelog +++ b/changelog @@ -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) diff --git a/src/play_controller.cpp b/src/play_controller.cpp index c308bc87ae6..c8e0f436882 100644 --- a/src/play_controller.cpp +++ b/src/play_controller.cpp @@ -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"); }