mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-12-24 23:15:24 +03:00
Better stop sign placement -- degenerate roads shouldn't get them. Not
sure why this wasn't done before. Regenerated all maps... but this happens to expose some lane-changing crashes.
This commit is contained in:
parent
e08ddba241
commit
48076a4c5b
@ -562,6 +562,7 @@ fn get_area_type(tags: &Tags) -> Option<AreaType> {
|
||||
"landuse",
|
||||
vec![
|
||||
"cemetery",
|
||||
"flowerbed",
|
||||
"forest",
|
||||
"grass",
|
||||
"meadow",
|
||||
|
@ -96,7 +96,7 @@ impl ControlStopSign {
|
||||
// Degenerate roads and deadends don't need any stop signs. But be careful with
|
||||
// roundabouts; we want it to be lower priority to enter a roundabout than continue through
|
||||
// it.
|
||||
if ss.roads.len() <= 1
|
||||
if ss.roads.len() <= 2
|
||||
&& ss
|
||||
.roads
|
||||
.keys()
|
||||
|
Loading…
Reference in New Issue
Block a user