Lines Matching refs:next_distance
70 int next_distance = map_routing_distance(next_offset); in map_routing_get_path() local
71 if (next_distance) { in map_routing_get_path()
72 if (next_distance < distance) { in map_routing_get_path()
73 distance = next_distance; in map_routing_get_path()
75 … } else if (next_distance == distance && (d == general_direction || direction == -1)) { in map_routing_get_path()
76 distance = next_distance; in map_routing_get_path()
123 int next_distance = map_routing_distance(next_offset); in map_routing_get_path_on_water() local
124 if (next_distance) { in map_routing_get_path_on_water()
125 if (next_distance < distance) { in map_routing_get_path_on_water()
126 distance = next_distance; in map_routing_get_path_on_water()
128 } else if (next_distance == distance && rand == current_rand) { in map_routing_get_path_on_water()
130 distance = next_distance; in map_routing_get_path_on_water()