Kill unused broken feature: use a list of randomly selected...

...images for titlescreen.

That actually broke campaign credits when campaign didn't provide
images (titlescreen was used as default)
This commit is contained in:
Ali El Gariani 2010-08-04 17:24:58 +00:00
parent e34e45ebc9
commit 15bf9f4109
2 changed files with 3 additions and 11 deletions

View file

@ -75,8 +75,7 @@
footprint_teleport_exit="footsteps/teleport-out.png"
[images]
# List of images that will be randomly selected for the titlescreen background
game_title="maps/wesnoth.png,maps/wesnoth.png"
game_title="maps/wesnoth.png"
game_logo="misc/logo.png"
game_icon="wesnoth-icon-small.png"

View file

@ -206,18 +206,11 @@ void ttitle_screen::pre_show(CVideo& video, twindow& window)
, boost::ref(window)
, false));
/***** Select a random game_title *****/
std::vector<std::string> game_title_list =
utils::split(game_config::images::game_title
, ','
, utils::STRIP_SPACES | utils::REMOVE_EMPTY);
if(game_title_list.empty()) {
if(game_config::images::game_title.empty()) {
ERR_CF << "No title image defined\n";
} else {
window.canvas()[0].set_variable("background_image",
variant(game_title_list[rand()%game_title_list.size()]));
variant(game_config::images::game_title));
}
/***** Set the logo *****/