mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-12-24 23:15:24 +03:00
Actually, keep the broken list of ways, to manually run with backtraces
This commit is contained in:
parent
8dff4c5da5
commit
c5210e9887
@ -1087,6 +1087,11 @@ fn reimport_map(
|
||||
Box::new(|ctx, app, success, _| {
|
||||
if !success {
|
||||
if let Some(ways) = rollback {
|
||||
if let Err(err) =
|
||||
std::fs::copy("merge_osm_ways.json", "BROKEN_merge_osm_ways.json")
|
||||
{
|
||||
warn!("No merged road file? {}", err);
|
||||
}
|
||||
abstio::write_json("merge_osm_ways.json".to_string(), &ways);
|
||||
}
|
||||
}
|
||||
|
@ -564,8 +564,7 @@ fn on_off_ramp(
|
||||
}
|
||||
roads.get_mut(&thin.id).unwrap().trimmed_center_pts = trimmed_thin;
|
||||
|
||||
// Trim the thick
|
||||
// extra ends at the intersection
|
||||
// Trim the thick extra ends at the intersection
|
||||
let extra = if roads[&thick_id].dst_i == i {
|
||||
roads[&thick_id]
|
||||
.trimmed_center_pts
|
||||
|
Loading…
Reference in New Issue
Block a user