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:
josteph 2019-05-11 10:16:05 +00:00
parent d25463e445
commit 5845684ee0

View file

@ -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);