Address bug #12050: Different leader names in game/status table.

This commit is contained in:
Eric S. Raymond 2008-08-22 18:36:39 +00:00
parent 7c3df74d58
commit e4b1566e0b

View file

@ -434,8 +434,13 @@ private:
} else {
leader_bools.push_back(false);
}
std::string side_name;
if (gamestate_.campaign_type == "multiplayer")
side_name = teams_[n].current_player();
else
side_name = teams_[n].user_team_name();
str << COLUMN_SEPARATOR << team::get_side_highlight(n)
<< teams_[n].current_player() << COLUMN_SEPARATOR
<< side_name << COLUMN_SEPARATOR
<< (data.teamname.empty() ? teams_[n].team_name() : data.teamname)
<< COLUMN_SEPARATOR;