mail[Wesnoth-commits] r24736 - /trunk/src/dialogs.cpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by shadowm2006 on March 17, 2008 - 12:10:
Author: shadowmaster
Date: Mon Mar 17 12:10:00 2008
New Revision: 24736

URL: http://svn.gna.org/viewcvs/wesnoth?rev=24736&view=rev
Log:
* Reflect branches/1.4 (r24735)

Modified:
    trunk/src/dialogs.cpp

Modified: trunk/src/dialogs.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/dialogs.cpp?rev=24736&r1=24735&r2=24736&view=diff
==============================================================================
--- trunk/src/dialogs.cpp (original)
+++ trunk/src/dialogs.cpp Mon Mar 17 12:10:00 2008
@@ -550,9 +550,10 @@
                str << "\n";
 
                if(campaign_type == "scenario") {
+                       const config* campaign = 
game_config_->find_child("campaign","id",summary["campaign"]);
                        utils::string_map symbols;
-                       symbols["campaign_name"] = summary["campaign"];
-                       str << vgettext("Campaign: $campaign_name", symbols);
+                       symbols["campaign_name"] = (*campaign)["name"];
+                       str << vgettext("Campaign: $campaign_name", symbols); 
  // FIXME: isn't this superfluous?
                } else if(campaign_type == "multiplayer") {
                        str << _("Multiplayer");
                } else if(campaign_type == "tutorial") {




Related Messages


Powered by MHonArc, Updated Mon Mar 17 12:21:22 2008