mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-12-01 02:33:54 +03:00
tiny performance improvement in parking mapper
This commit is contained in:
parent
e35c69f6f3
commit
3b8a0e4edc
@ -265,7 +265,7 @@ impl State for ParkingMapper {
|
||||
self.composite
|
||||
.replace(ctx, "info", txt.draw(ctx).named("info"));
|
||||
}
|
||||
} else {
|
||||
} else if self.selected.is_some() {
|
||||
self.selected = None;
|
||||
self.composite
|
||||
.replace(ctx, "info", "Select a road".draw_text(ctx).named("info"));
|
||||
|
Loading…
Reference in New Issue
Block a user