fiddle with drawing order so intersections underneath bridges dont look so strange unzoomed

This commit is contained in:
Dustin Carlino 2020-05-29 10:12:50 -07:00
parent 549cba977e
commit f9d9011aad
3 changed files with 6 additions and 5 deletions

View File

@ -163,12 +163,13 @@ impl App {
if layers.show_areas {
g.redraw(&self.primary.draw_map.draw_all_areas);
}
if layers.show_lanes {
g.redraw(&self.primary.draw_map.draw_all_thick_roads);
}
// Render bridges over intersections in the correct order
if layers.show_intersections {
g.redraw(&self.primary.draw_map.draw_all_unzoomed_intersections);
}
if layers.show_lanes {
g.redraw(&self.primary.draw_map.draw_all_thick_roads);
}
if layers.show_buildings {
g.redraw(&self.primary.draw_map.draw_all_buildings);
// Not the building paths

View File

@ -201,8 +201,8 @@ impl Minimap {
g.enable_clipping(inner_rect);
g.redraw(&app.primary.draw_map.boundary_polygon);
g.redraw(&app.primary.draw_map.draw_all_areas);
g.redraw(&app.primary.draw_map.draw_all_thick_roads);
g.redraw(&app.primary.draw_map.draw_all_unzoomed_intersections);
g.redraw(&app.primary.draw_map.draw_all_thick_roads);
g.redraw(&app.primary.draw_map.draw_all_buildings);
// Not the building paths
if let Some(ref l) = app.layer {

View File

@ -470,8 +470,8 @@ pub fn preview_trip(g: &mut GfxCtx, app: &App, composite: &Composite) {
g.redraw(&app.primary.draw_map.boundary_polygon);
g.redraw(&app.primary.draw_map.draw_all_areas);
g.redraw(&app.primary.draw_map.draw_all_thick_roads);
g.redraw(&app.primary.draw_map.draw_all_unzoomed_intersections);
g.redraw(&app.primary.draw_map.draw_all_thick_roads);
if let Some(x) = composite.currently_hovering() {
if let Ok(idx) = x.parse::<usize>() {