CVSROOT:        /cvsroot/wesnoth
Module name:    wesnoth
Branch:         
Changes by:     Guillaume Melquiond <[EMAIL PROTECTED]> 04/10/19 05:52:13

Modified files:
        src            : help.cpp 

Log message:
        Fix displaying of translated terrains in help for unit descriptions.

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

Patches:
Index: wesnoth/src/help.cpp
diff -u wesnoth/src/help.cpp:1.35 wesnoth/src/help.cpp:1.36
--- wesnoth/src/help.cpp:1.35   Tue Oct 19 05:23:38 2004
+++ wesnoth/src/help.cpp        Tue Oct 19 05:52:13 2004
@@ -789,7 +789,7 @@
                                        const terrain_type& info = 
map->get_terrain_info(terrain);
                                        if (!info.is_alias()) {
                                                
std::vector<std::pair<std::string, unsigned> > row;
-                                               const std::string &name = 
info.name();
+                                               const std::string &name = 
string_table[info.name()];
                                                const int moves = 
movement_type.movement_cost(*map,terrain);
                                                std::stringstream str;
                                                str << "<ref>text='" << 
escape(name) << "' dst='"


Reply via email to