Skip to content

Commit

Permalink
wb: fixup "fix incorrect handling of skirmisher."
Browse files Browse the repository at this point in the history
(cherry-picked from commit 9cc32eb)
  • Loading branch information
gfgtdf authored and Vultraz committed Oct 7, 2018
1 parent f7ad6de commit da14573
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/whiteboard/move.cpp
Expand Up @@ -354,7 +354,7 @@ void move::apply_temp_modifier(unit_map& unit_map)

if (route_->move_cost == -1) {
// TODO: check_validity also calls pathfind::mark_route(get_route().route), optimize/refactor this to only call that once.
route_->move_cost = pathfind::mark_route(get_route().route).move_cost;
route_->move_cost = pathfind::mark_route(get_route().route, true).move_cost;
}
//Modify movement points
DBG_WB <<"Move: Changing movement points for unit " << unit->name() << " [" << unit->id()
Expand Down

0 comments on commit da14573

Please sign in to comment.