mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-12-29 01:13:53 +03:00
another tiny trace_route bug
This commit is contained in:
parent
40cc81ca6f
commit
8c2db6de82
@ -177,7 +177,9 @@ impl Path {
|
||||
}
|
||||
|
||||
let start_dist_this_step = match self.steps[i] {
|
||||
PathStep::ContraflowLane(l) => map.get_l(l).length(),
|
||||
// TODO Length of a PolyLine can slightly change when points are reversed! That
|
||||
// seems bad.
|
||||
PathStep::ContraflowLane(l) => map.get_l(l).lane_center_pts.reversed().length(),
|
||||
_ => 0.0 * si::M,
|
||||
};
|
||||
if let Some((new_pts, dist)) =
|
||||
|
Loading…
Reference in New Issue
Block a user