show team_name in the status window if user_team_name is not set

This commit is contained in:
uso 2008-02-13 23:08:45 +00:00
parent 4dd534ce5a
commit 17f441d3de

View File

@ -584,7 +584,8 @@ private:
}
str << COLUMN_SEPARATOR << team::get_side_highlight(n)
<< teams_[n].current_player() << COLUMN_SEPARATOR
<< data.teamname << COLUMN_SEPARATOR;
<< (data.teamname.empty() ? teams_[n].team_name() : data.teamname)
<< COLUMN_SEPARATOR;
if(!known && !game_config::debug) {
// We don't spare more info (only name)