mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-28 02:06:23 +00:00
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:
parent
ba0876ab29
commit
1978b312d8
@ -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"]);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user