Skip to content

Commit

Permalink
gui2/unit_create: Do not exclude do_not_list units
Browse files Browse the repository at this point in the history
This is a debug mode-only dialog. If I want to spawn a unit, the game
had better allow me to spawn any unit I want. do_not_list was created
for use by wmlunits anyway.

(cherry-picked from commit 085236f)
  • Loading branch information
irydacea committed Oct 7, 2018
1 parent bcc914b commit 3505af2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 2 additions & 0 deletions changelog.md
Expand Up @@ -234,6 +234,8 @@
matching 1.12's behavior again.
* [message] displays the unit type name when a nameless unit speaks and no
custom caption= is specified (fixes #3211).
* do_not_list=yes units are no longer excluded from the debug mode-only
Create Unit dialog.

## Version 1.13.12
### Security fixes
Expand Down
3 changes: 0 additions & 3 deletions src/gui/dialogs/unit_create.cpp
Expand Up @@ -118,9 +118,6 @@ void unit_create::pre_show(window& window)

for(const auto & i : unit_types.types())
{
if(i.second.do_not_list())
continue;

// Make sure this unit type is built with the data we need.
unit_types.build_unit_type(i.second, unit_type::FULL);

Expand Down

0 comments on commit 3505af2

Please sign in to comment.