From 515d7fe255897d9a5d5f4ea451418448d2b9ff3e Mon Sep 17 00:00:00 2001 From: josteph Date: Sat, 22 Jun 2019 18:39:07 +0000 Subject: [PATCH] Status table: In replays with "View: Full Map", show all sides' gold status Note that all sides' gold status is already shown whenever debug mode is active. Fixes part of #4134 (cherry picked from commit 3767097ba0aa93e5b52347128e6745634e644d81) --- src/gui/dialogs/game_stats.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/gui/dialogs/game_stats.cpp b/src/gui/dialogs/game_stats.cpp index 449154fbf5a9..ce222612de02 100644 --- a/src/gui/dialogs/game_stats.cpp +++ b/src/gui/dialogs/game_stats.cpp @@ -97,11 +97,12 @@ void game_stats::pre_show(window& window) std::string leader_name; std::string leader_image; + const bool see_all = game_config::debug || (resources::controller && resources::controller->get_display().show_everything()); if(leader) { - const bool visible = leader->is_visible_to_team(leader->get_location(), viewing_team_, board_, false); + const bool visible = leader->is_visible_to_team(leader->get_location(), viewing_team_, board_, see_all); // Add leader image. If it's fogged/[hides], show only a random leader image. - if(visible || known || game_config::debug) { + if(visible || known) { leader_image = leader->absolute_image() + leader->image_mods(); leader_name = leader->name(); } else { @@ -133,9 +134,9 @@ void game_stats::pre_show(window& window) row_data_stats.emplace("team_name", column_stats); // Only fill in the rest of the info if the side is known... - if(known || game_config::debug) { + if(known || see_all) { std::string gold_str; - if(game_config::debug || !enemy || !viewing_team_.uses_fog()) { + if(see_all || !enemy || !viewing_team_.uses_fog()) { gold_str = utils::half_signed_value(team.gold()); }