Author: shadowmaster
Date: Sun Nov 2 21:06:48 2008
New Revision: 30548
URL: http://svn.gna.org/viewcvs/wesnoth?rev=30548&view=rev
Log:
* Sound sources are loaded from saved games.
This fixes bug #11495.
Modified:
trunk/src/playsingle_controller.cpp
Modified: trunk/src/playsingle_controller.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/playsingle_controller.cpp?rev=30548&r1=30547&r2=30548&view=diff
==============================================================================
--- trunk/src/playsingle_controller.cpp (original)
+++ trunk/src/playsingle_controller.cpp Sun Nov 2 21:06:48 2008
@@ -257,6 +257,15 @@
const config::child_list& overlays = level_.get_children("item");
for(config::child_list::const_iterator overlay = overlays.begin();
overlay != overlays.end(); ++overlay) {
gui_->add_overlay(map_location(**overlay,
game_events::get_state_of_game()), (**overlay)["image"], (**overlay)["halo"],
(**overlay)["team_name"], (**overlay)["fogged"]);
+ }
+
+ // Read sound sources
+ assert(soundsources_manager_ != NULL);
+ const config::child_list& snd_sources =
level_.get_children("sound_source");
+ for(config::child_list::const_iterator i = snd_sources.begin(); i !=
snd_sources.end(); ++i) {
+ assert(*i != NULL);
+ soundsource::sourcespec spec(**i);
+ soundsources_manager_->add(spec);
}
victory_conditions::set_victory_when_enemies_defeated(
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits