Fix bug 22231: movement continuation in whiteboard.\n\nProblem was that the whiteboard was not initialized and the select or action function that is called with the hotkey for select/move/attack couldn't see the partial whiteboard movements.

This commit is contained in:
David Mikos 2014-06-28 18:00:31 +09:30
parent 75a575c2ea
commit 89e2047ab5
3 changed files with 6 additions and 0 deletions

View file

@ -79,6 +79,7 @@ Version 1.11.15+dev:
* Fix bug #20126: Recursive preprocessor includes cause infinite loop
* Added 'faction_lock' and 'leader_lock' to SideWML to be used in MP Connect
screen. Fixes bug #21978.
* Fix bug #22231: partial moves now able to be continued in whiteboard
Version 1.11.15:
* Graphics:

View file

@ -23,6 +23,8 @@ Version 1.11.15+dev:
resulting in loading malformed/incomplete WML data
<http://r.wesnoth.org/p571380>.
* Miscellaneous and bug fixes:
* Partial moves now able to be continued properly in whiteboard (#22231)
Version 1.11.15:
* Language and i18n:

View file

@ -498,6 +498,9 @@ void mouse_handler::select_or_action(bool browse)
if (!resources::game_map->on_board(last_hex_))
return;
// Load whiteboard partial moves
wb::future_map_if_active planned_unit_map;
unit_map::iterator clicked_u = find_unit(last_hex_);
unit_map::iterator selected_u = find_unit(selected_hex_);