Skip to content

Commit

Permalink
apply a brief blindfold when changing sides in hotseat mp
Browse files Browse the repository at this point in the history
Fix bug #3865: While the turn dialog used for changing sides is active,
apply a blindfold, which is removed when the dialog is cleared.
  • Loading branch information
cbeck88 committed Mar 26, 2014
1 parent 56bdb6a commit 15a4c1f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions changelog
Expand Up @@ -50,6 +50,8 @@ Version 1.13.0-dev:
* Fix bug #21257: Lagging animations with skip AI animations and fog/shroud.
* Improved unicode handling on windows for characters outside the Basic
Multilingual Plane.
* Fix bug #3856: The turn dialog used in hotseat MP play now applies
a blindfold for the duration of the dialog.

Version 1.11.11:
* Add-ons server:
Expand Down
2 changes: 2 additions & 0 deletions players_changelog
Expand Up @@ -21,6 +21,8 @@ Version 1.13.0-dev:
* Fixed halos glitching through locations that become shrouded after the
halo is rendered for the first time.
* OS X user data directory is now ~/Library/Application Support/Wesnoth_1.13
* Fix bug #3856: The turn dialog used in hotseat MP play now applies
a blindfold for the duration of the dialog.


Version 1.11.11:
Expand Down
2 changes: 2 additions & 0 deletions src/playsingle_controller.cpp
Expand Up @@ -741,6 +741,8 @@ void playsingle_controller::before_human_turn(bool save)

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();
std::string message = _("It is now $name|’s turn");
utils::string_map symbols;
symbols["name"] = teams_[player_number_ - 1].current_player();
Expand Down

0 comments on commit 15a4c1f

Please sign in to comment.