enable 'reveal_map' in sp

It defaults to false, the change is mostly to make the code simpler
This commit is contained in:
gfgtdf 2024-03-01 02:27:33 +01:00
parent dd91316104
commit c452f498de
2 changed files with 6 additions and 6 deletions

View file

@ -225,12 +225,6 @@ void playmp_controller::linger()
assert(is_regular_game_end());
if(get_end_level_data().transient.reveal_map) {
// Change the view of all players and observers
// to see the whole map regardless of shroud and fog.
update_gui_to_player(gui_->viewing_team(), true);
}
bool quit;
do {
quit = true;

View file

@ -575,6 +575,12 @@ void playsingle_controller::update_gui_linger()
gui_->set_game_mode(game_display::LINGER);
// change the end-turn button text from "End Turn" to "End Scenario"
gui_->get_theme().refresh_title2("button-endturn", "title2");
if(get_end_level_data().transient.reveal_map) {
// Change the view of all players and observers
// to see the whole map regardless of shroud and fog.
update_gui_to_player(gui_->viewing_team(), true);
}
} else {
gui_->set_game_mode(game_display::RUNNING);
// change the end-turn button text from "End Scenario" to "End Turn"