Fix mangling of image path functions...
...in credits background lists (about.images attribute) by using the parenthetical split algorithm instead
This commit is contained in:
parent
c8390521d5
commit
75920c02ce
2 changed files with 4 additions and 2 deletions
|
@ -59,6 +59,8 @@ Version 1.9.9+svn:
|
|||
* Make the create unit dialog give the created unit a valid gender for
|
||||
that unit type. (bug #18704)
|
||||
* Add --language/-L commandline option to set the language for that session
|
||||
* The credits screen no longer mangles image path function in background
|
||||
image lists
|
||||
|
||||
Version 1.9.9:
|
||||
* AI:
|
||||
|
|
|
@ -183,9 +183,9 @@ void show_about(display &disp, const std::string &campaign)
|
|||
|
||||
std::vector<std::string> image_list;
|
||||
if(campaign.size() && !images[campaign].empty()){
|
||||
image_list=utils::split(images[campaign]);
|
||||
image_list=utils::parenthetical_split(images[campaign], ',', "(", ")");
|
||||
}else{
|
||||
image_list=utils::split(images_default,',',utils::STRIP_SPACES);
|
||||
image_list=utils::parenthetical_split(images_default, ',', "(", ")", utils::STRIP_SPACES);
|
||||
}
|
||||
surface map_image(scale_surface(image::get_image(image_list[0]), screen->w, screen->h));
|
||||
if(! map_image){
|
||||
|
|
Loading…
Add table
Reference in a new issue