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:
gfgtdf 2014-11-04 03:45:52 +01:00
parent 69829d6b66
commit 1d6d7a9c1d

View File

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