Author: alink
Date: Sat Oct  4 22:57:07 2008
New Revision: 29880

URL: http://svn.gna.org/viewcvs/wesnoth?rev=29880&view=rev
Log:
Quick temporary fix for a bug causing double male/female ability help pages.
This deactivates the female_name of ability for unit_type only, so the change
is only visible in the recruit dialogue for purely female unit type.

Modified:
    trunk/src/unit_types.cpp

Modified: trunk/src/unit_types.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/unit_types.cpp?rev=29880&r1=29879&r2=29880&view=diff
==============================================================================
--- trunk/src/unit_types.cpp (original)
+++ trunk/src/unit_types.cpp Sat Oct  4 22:57:07 2008
@@ -837,11 +837,13 @@
                for(config::child_map::const_iterator j = abi.begin(); j != 
abi.end(); ++j) {
                        for(config::child_list::const_iterator k = 
j->second.begin(); k != j->second.end(); ++k) {
                                if((**k)["name"] != "") {
-                                       abilities_.push_back(
+                                       abilities_.push_back((**k)["name"]);
+                                       //FIXME: female name cause double 
entries in help
+                                       /*abilities_.push_back(
                                                genders_.front() == 
unit_race::MALE || (**k)["female_name"].empty() ?
                                                (**k)["name"] :
                                                (**k)["female_name"]
-                                       );
+                                       );*/
                                        
ability_tooltips_.push_back((**k)["description"]);
                                }
                        }


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

Reply via email to