mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-12-28 17:04:20 +03:00
Fix crash in krakow with a biking trip that should get converted to a walking trip, but isn't
This commit is contained in:
parent
24e1a48d75
commit
b9ff94f275
@ -372,8 +372,9 @@ impl TripManager {
|
||||
end,
|
||||
constraints: PathConstraints::Bike,
|
||||
};
|
||||
let maybe_router = if req.start == req.end {
|
||||
// TODO Convert to a walking trip!
|
||||
let maybe_router = if req.start.lane() == req.end.lane() {
|
||||
// TODO Convert to a walking trip! Ideally, do this earlier and convert the trip to
|
||||
// walking, like schedule_trip does
|
||||
None
|
||||
} else {
|
||||
ctx.map
|
||||
|
Loading…
Reference in New Issue
Block a user