Skip to content

Commit

Permalink
Qt: Tell if player is observer in hud
Browse files Browse the repository at this point in the history
See osdn #48132

Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
  • Loading branch information
cazfi committed Jul 12, 2023
1 parent 579602f commit ea14b92
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions client/gui-qt/hudwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1679,8 +1679,11 @@ void show_new_turn_info()
research = research_get(client_player());
s = QString(_("Year: %1 (Turn: %2)"))
.arg(calendar_text()).arg(game.info.turn) + "\n";
s = s + QString(nation_plural_for_player(client_player()));
s = s + " - " + QString(_("Population: %1"))
s += QString(nation_plural_for_player(client_player()));
if (client_is_observer()) {
s += QString(_(" (observer)"));
}
s += " - " + QString(_("Population: %1"))
.arg(population_to_text(civ_population(client.conn.playing)));
if (research->researching != A_UNKNOWN
&& research->researching != A_UNSET
Expand Down

0 comments on commit ea14b92

Please sign in to comment.