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.
This commit is contained in:
Ali El Gariani 2008-10-04 20:57:07 +00:00
parent ba0876ab29
commit 1978b312d8

View File

@ -837,11 +837,13 @@ void unit_type::build_help_index(const config& cfg, const movement_type_map& mv_
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"]);
}
}