mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-08 19:14:17 +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()){
|
if (move_spectator_.get_unit().valid()){
|
||||||
unit_location_ = move_spectator_.get_unit()->first;
|
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);
|
stopunit_result_ptr stopunit_res = actions::execute_stopunit_action(get_side(),true,unit_location_,true,false);
|
||||||
if (!stopunit_res->is_ok()) {
|
if (!stopunit_res->is_ok()) {
|
||||||
set_error(stopunit_res->get_status());
|
set_error(stopunit_res->get_status());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user