CVSROOT:        /cvsroot/wesnoth
Module name:    wesnoth
Branch:         
Changes by:     ott <[EMAIL PROTECTED]> 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