wb: fix wrong simulated movement points when planning to capture a village.

(cherry-picked from commit ff82a007d5)
This commit is contained in:
gfgtdf 2018-06-22 12:41:56 +02:00 committed by Charles Dang
parent bd97d0c471
commit 81bd61ae14

View file

@ -690,7 +690,12 @@ marked_route mark_route(const plain_route &rt, bool update_move_cost)
res.marks[*i] = marked_route::mark(turns, zoc, capture, invisible);
if (last_step) break; // finished and we used dummy move_cost
if(last_step) {
if(capture) {
total_costs += movement;
}
break; // finished and we used dummy move_cost
}
total_costs += movement;
movement = u.total_movement();