mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-21 19:07:16 +00:00
fix leader names in mp
"name" is here the name of the leader, previously the flg manager set it to the name of the faction.
This commit is contained in:
parent
69829d6b66
commit
1d6d7a9c1d
@ -955,8 +955,9 @@ config side_engine::new_config() const
|
||||
// Merge the faction data to res.
|
||||
config faction = flg_.current_faction();
|
||||
faction.remove_attribute("id");
|
||||
res["faction_name"] = faction["name"];
|
||||
faction.remove_attribute("name");
|
||||
res.append(faction);
|
||||
res["faction_name"] = res["name"];
|
||||
}
|
||||
|
||||
if (!cfg_.has_attribute("side") || cfg_["side"].to_int() != index_ + 1) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user