Author: silene
Date: Sun Apr 19 21:41:48 2009
New Revision: 35067
URL: http://svn.gna.org/viewcvs/wesnoth?rev=35067&view=rev
Log:
Ensured the show_objectives action handler is called when the user asks for
objectives, in case the scenario wants to perform special actions, or just to
make sure that they are up-to-date.
Modified:
trunk/src/menu_events.cpp
Modified: trunk/src/menu_events.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/menu_events.cpp?rev=35067&r1=35066&r2=35067&view=diff
==============================================================================
--- trunk/src/menu_events.cpp (original)
+++ trunk/src/menu_events.cpp Sun Apr 19 21:41:48 2009
@@ -155,6 +155,11 @@
}
void menu_handler::objectives(const unsigned int team_num)
{
+ config cfg;
+ cfg["side"] = str_cast(team_num);
+ game_events::handle_event_command("show_objectives",
+ game_events::queued_event("_from_interface",
map_location(),
+ map_location(), config()), vconfig(cfg));
dialogs::show_objectives(*gui_, level_, teams_[team_num -
1].objectives());
teams_[team_num - 1].reset_objectives_changed();
}
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits