Address bug #12050: Different leader names in game/status table.
This commit is contained in:
parent
7c3df74d58
commit
e4b1566e0b
1 changed files with 6 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue