From a2bcbee987d835e90cee0316b6e508a10ff37cd8 Mon Sep 17 00:00:00 2001 From: Iurii Chernyi Date: Sat, 22 Aug 2009 23:22:10 +0000 Subject: [PATCH] fixed the way full move works --- src/ai/actions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ai/actions.cpp b/src/ai/actions.cpp index f17ac82092f..52e14535fb6 100644 --- a/src/ai/actions.cpp +++ b/src/ai/actions.cpp @@ -526,7 +526,7 @@ void move_result::do_execute() if (move_spectator_.get_unit().valid()){ unit_location_ = move_spectator_.get_unit()->first; - if ( remove_movement_ && ( move_spectator_.get_unit()->second.movement_left() > 0 ) ) { + if ( remove_movement_ && ( move_spectator_.get_unit()->second.movement_left() > 0 ) && (unit_location_==to_)) { stopunit_result_ptr stopunit_res = actions::execute_stopunit_action(get_side(),true,unit_location_,true,false); if (!stopunit_res->is_ok()) { set_error(stopunit_res->get_status());