Don't display a path from a building to the nearest parking when infinite parking is enabled. [rebuild] [release]
@@ -69,6 +69,7 @@ pub fn info(ctx: &mut EventCtx, app: &App, details: &mut Details, id: BuildingID
}
}
+ if !app.primary.sim.infinite_parking() {
txt.add(Line(""));
if let Some(pl) = app
.primary
@@ -98,6 +99,7 @@ pub fn info(ctx: &mut EventCtx, app: &App, details: &mut Details, id: BuildingID
} else {
txt.add(Line("No nearby parking available"))
}
+ }
if !txt.is_empty() {
rows.push(txt.draw(ctx))
