mirror of
https://github.com/a-b-street/abstreet.git
synced 2025-01-08 07:41:57 +03:00
fiddle with drawing order so intersections underneath bridges dont look so strange unzoomed
This commit is contained in:
parent
549cba977e
commit
f9d9011aad
@ -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
|
||||
|
@ -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 {
|
||||
|
@ -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>() {
|
||||
|
Loading…
Reference in New Issue
Block a user