Author: shadowmaster
Date: Sun Oct 16 18:26:07 2011
New Revision: 51513

URL: http://svn.gna.org/viewcvs/wesnoth?rev=51513&view=rev
Log:
Fix mangling of image path functions in credits background lists (about.images 
attribute) by using the parenthetical split algorithm instead

Modified:
    trunk/changelog
    trunk/src/about.cpp

Modified: trunk/changelog
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/changelog?rev=51513&r1=51512&r2=51513&view=diff
==============================================================================
--- trunk/changelog (original)
+++ trunk/changelog Sun Oct 16 18:26:07 2011
@@ -59,6 +59,8 @@
    * 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:

Modified: trunk/src/about.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/about.cpp?rev=51513&r1=51512&r2=51513&view=diff
==============================================================================
--- trunk/src/about.cpp (original)
+++ trunk/src/about.cpp Sun Oct 16 18:26:07 2011
@@ -183,9 +183,9 @@
 
        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){


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to