wb: fix wrong simulated movement points when planning to capture a village.
(cherry-picked from commit ff82a007d5
)
This commit is contained in:
parent
bd97d0c471
commit
81bd61ae14
1 changed files with 6 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue