wesnoth-cvs-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Wesnoth-cvs-commits] wesnoth/src help.cpp


From: ott
Subject: [Wesnoth-cvs-commits] wesnoth/src help.cpp
Date: Sun, 31 Jul 2005 19:34:49 -0400

CVSROOT:        /cvsroot/wesnoth
Module name:    wesnoth
Branch:         
Changes by:     ott <address@hidden>    05/07/31 23:34:49

Modified files:
        src            : help.cpp 

Log message:
        fix terrain list xrefs in unit help

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/help.cpp.diff?tr1=1.111&tr2=1.112&r1=text&r2=text

Patches:
Index: wesnoth/src/help.cpp
diff -u wesnoth/src/help.cpp:1.111 wesnoth/src/help.cpp:1.112
--- wesnoth/src/help.cpp:1.111  Sat Jul 16 18:51:56 2005
+++ wesnoth/src/help.cpp        Sun Jul 31 23:34:49 2005
@@ -1209,10 +1209,11 @@
                                if (!info.is_alias() && info.is_nonnull()) {
                                        std::vector<item> row;
                                        const std::string& name = info.name();
+                                       const std::string id = info.id();
                                        const int moves = 
movement_type.movement_cost(*map,terrain);
                                        std::stringstream str;
                                        str << "<ref>text='" << escape(name) << 
"' dst='"
-                                           << escape(std::string("terrain_") + 
terrain) << "'</ref>";
+                                           << escape(std::string("terrain_") + 
id) << "'</ref>";
                                        row.push_back(std::make_pair(str.str(),
                                                                     
font::line_width(name,
                                                                                
      normal_font_size)));




reply via email to

[Prev in Thread] Current Thread [Next in Thread]