mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-11-24 09:24:26 +03:00
Don't draw paths to places >15 mins away. #393
This commit is contained in:
parent
248b922810
commit
cff51a46ea
@ -93,6 +93,11 @@ impl Isochrone {
|
||||
}
|
||||
|
||||
pub fn path_to(&self, map: &Map, to: BuildingID) -> Option<Path> {
|
||||
// Don't draw paths to places far away
|
||||
if !self.time_to_reach_building.contains_key(&to) {
|
||||
return None;
|
||||
}
|
||||
|
||||
let req = PathRequest::between_buildings(
|
||||
map,
|
||||
self.start,
|
||||
|
Loading…
Reference in New Issue
Block a user