This commit is contained in:
Charles Dang 2016-08-25 03:56:09 +11:00
parent 379d4ea17b
commit e3f397ca8c

View file

@ -425,13 +425,14 @@ void extract_summary_from_config(config& cfg_save, config& cfg_summary)
//}
cfg_summary["leader"] = leader;
if(!cfg_summary["leader_image"].empty()) {
// We need a binary path-independent path to the leader image here
// so it can be displayed for campaign-specific units in the dialog
// even when the campaign isn't loaded yet.
cfg_summary["leader_image"] = filesystem::get_independent_image_path(leader_image);
// Append the leader image's team coloring
// We need a binary path-independent path to the leader image here
// so it can be displayed for campaign-specific units in the dialog
// even when the campaign isn't loaded yet.
cfg_summary["leader_image"] = filesystem::get_independent_image_path(leader_image);
// Append the leader image's team coloring
if(!cfg_summary["leader_image"].empty()) {
cfg_summary["leader_image"] = cfg_summary["leader_image"].str() + leader_image_tc_modifier;
}