mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-12-26 07:52:05 +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",
|
"landuse",
|
||||||
vec![
|
vec![
|
||||||
"cemetery",
|
"cemetery",
|
||||||
|
"flowerbed",
|
||||||
"forest",
|
"forest",
|
||||||
"grass",
|
"grass",
|
||||||
"meadow",
|
"meadow",
|
||||||
|
@ -96,7 +96,7 @@ impl ControlStopSign {
|
|||||||
// Degenerate roads and deadends don't need any stop signs. But be careful with
|
// 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
|
// roundabouts; we want it to be lower priority to enter a roundabout than continue through
|
||||||
// it.
|
// it.
|
||||||
if ss.roads.len() <= 1
|
if ss.roads.len() <= 2
|
||||||
&& ss
|
&& ss
|
||||||
.roads
|
.roads
|
||||||
.keys()
|
.keys()
|
||||||
|
Loading…
Reference in New Issue
Block a user