Skip to content

Commit

Permalink
Fix bug #21372: fix unit move continuation if enemy discovered
Browse files Browse the repository at this point in the history
  • Loading branch information
Coffee-- committed May 4, 2014
1 parent 0a8158c commit 784edee
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions changelog
Expand Up @@ -10,6 +10,7 @@ Version 1.11.13+dev:
unsigned long rather than an unsigned int.
* Fix bug #21491: fix drag+drop for unit movements
* Fix bug #21448: make premoved units selection like in Wesnoth 1.10
* Fix bug #21372: fix unit move continuation if enemy discovered

Version 1.11.13:
* AI:
Expand Down
1 change: 1 addition & 0 deletions players_changelog
Expand Up @@ -8,6 +8,7 @@ Version 1.11.13+dev:
* Miscellaneous and bug fixes:
* Fix bug stopping drag+drop for unit movements
* Revert premoved units selection to Wesnoth 1.10 behavior (#21448)
* Fix unit move continuation if enemy discovered (#21372)


Version 1.11.13:
Expand Down
5 changes: 1 addition & 4 deletions src/mouse_events.cpp
Expand Up @@ -676,10 +676,7 @@ void mouse_handler::move_action(bool browse)

void mouse_handler::select_hex(const map_location& hex, const bool browse, const bool highlight, const bool fire_event) {

if (selected_hex_ == hex)
selected_hex_ = map_location::null_location;
else
selected_hex_ = hex;
selected_hex_ = hex;

gui().select_hex(selected_hex_);
gui().clear_attack_indicator();
Expand Down

0 comments on commit 784edee

Please sign in to comment.