Skip to content

Commit

Permalink
Fix bug #22465: Minimap not redrawn after turn dialog.
Browse files Browse the repository at this point in the history
In playsingle_controller::show_turn_dialog added a call
to redraw the minimap in addition to the call to redraw
everything.
  • Loading branch information
LovCAPONE committed Sep 5, 2014
1 parent 41b079b commit 24b3bbb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog
Expand Up @@ -311,6 +311,7 @@ Version 1.13.0-dev:
* Align unit overlays to the sprite rather than the occupied hex.
* Remove carryover WML (this may make a reappearance in 1.13.0 but it is
considered premature now, please see github PR discussion for more info)
* Fix bug #22465: Minimap not redrawn after turn dialog.

Version 1.11.11:
* Add-ons server:
Expand Down
3 changes: 3 additions & 0 deletions data/core/about.cfg
Expand Up @@ -1137,6 +1137,9 @@
[entry]
name = "Laurent Birtz"
[/entry]
[entry]
name = "Lovens Weche (LovCAPONE)"
[/entry]
[entry]
name = "Luiz Fernando de Faria Pereira (lfernando)"
[/entry]
Expand Down
1 change: 1 addition & 0 deletions src/playsingle_controller.cpp
Expand Up @@ -846,6 +846,7 @@ void playsingle_controller::show_turn_dialog(){
if(preferences::turn_dialog() && (level_result_ == NONE) ) {
blindfold b(*resources::screen, true); //apply a blindfold for the duration of this dialog
resources::screen->redraw_everything();
resources::screen->recalculate_minimap();
std::string message = _("It is now $name|’s turn");
utils::string_map symbols;
symbols["name"] = gamestate_.board_.teams()[player_number_ - 1].current_player();
Expand Down

0 comments on commit 24b3bbb

Please sign in to comment.