mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-07 14:43:07 +00:00
fixed the way full move works
This commit is contained in:
parent
f177bd9488
commit
a2bcbee987
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user