Don't list hide_help=yes unit type variations in the help system
This commit is contained in:
parent
0addcc7a11
commit
e150c1d56f
3 changed files with 11 additions and 0 deletions
|
@ -4,6 +4,9 @@ Version 1.11.8+dev:
|
|||
* Units:
|
||||
* Fixed subtle magenta TC for the Giant Mudcrawler sprites not being
|
||||
enabled in-game.
|
||||
* User interface:
|
||||
* Fixed hidden variations of unit types (hide_help=yes) being listed in the
|
||||
help browser when they shouldn't.
|
||||
* Miscellaneous and bug fixes:
|
||||
* Added -Wno-documentation-deprecated-sync to the CMake pedantic flags.
|
||||
* Fixed several Doxygen issues found by Clang 3.4.
|
||||
|
|
|
@ -10,6 +10,10 @@ Version 1.11.8+dev:
|
|||
* Fixed subtle magenta TC for the Giant Mudcrawler sprites not being
|
||||
enabled in-game.
|
||||
|
||||
* User interface:
|
||||
* Fixed hidden variations of unit types (hide_help=yes) being listed in the
|
||||
help browser when they shouldn't.
|
||||
|
||||
* Miscellaneous and bug fixes:
|
||||
* Fixed possible invalid memory access issue in the MP sides configuration
|
||||
code causing crashes for some users (bug #21449).
|
||||
|
|
|
@ -1478,6 +1478,10 @@ public:
|
|||
BOOST_FOREACH(const std::string &var_id, parent->variations()) {
|
||||
const unit_type &type = parent->get_variation(var_id);
|
||||
|
||||
if(type.hide_help()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (first) {
|
||||
ss << _("Variations: ");
|
||||
first = false;
|
||||
|
|
Loading…
Add table
Reference in a new issue