unit_create: In debug mode, show unit type id's in their help topics.
Useful when multiple unit types have the same name.
This commit is contained in:
parent
d25463e445
commit
5845684ee0
1 changed files with 2 additions and 0 deletions
|
@ -126,6 +126,8 @@ void unit_create::pre_show(window& window)
|
|||
row_data.emplace("race", column);
|
||||
|
||||
column["label"] = units_.back()->type_name();
|
||||
if(game_config::debug && strcmp(units_.back()->type_name().c_str(), units_.back()->id().c_str()))
|
||||
column["label"] += " (" + units_.back()->id() + ")";
|
||||
row_data.emplace("unit_type", column);
|
||||
|
||||
list.add_row(row_data);
|
||||
|
|
Loading…
Add table
Reference in a new issue