Author: alink
Date: Sun Nov 22 03:10:00 2009
New Revision: 39864
URL: http://svn.gna.org/viewcvs/wesnoth?rev=39864&view=rev
Log:
Stop losing "goto" destination when doing a undo+redo.
Note that a simple undo continues to disable the goto, to prevent that it
auto-redo itself at the next turn (supposed to be undo for a reason)
Modified:
trunk/src/menu_events.cpp
Modified: trunk/src/menu_events.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/menu_events.cpp?rev=39864&r1=39863&r2=39864&view=diff
==============================================================================
--- trunk/src/menu_events.cpp (original)
+++ trunk/src/menu_events.cpp Sun Nov 22 03:10:00 2009
@@ -1205,7 +1205,7 @@
u = units_.find(route.back());
unit::clear_status_caches();
- u->second.set_goto(map_location());
+ u->second.set_goto(action.affected_unit.get_goto());
u->second.set_movement(starting_moves);
u->second.set_standing();
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits