mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-12-22 22:01:41 +03:00
always draw brake light with turn signals
This commit is contained in:
parent
288538b14b
commit
649d0ddbda
@ -77,7 +77,11 @@ impl DrawCar {
|
|||||||
.unwrap(),
|
.unwrap(),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
TurnType::Straight => {
|
TurnType::Straight => {}
|
||||||
|
TurnType::Crosswalk | TurnType::SharedSidewalkCorner => unreachable!(),
|
||||||
|
}
|
||||||
|
|
||||||
|
// Always draw the brake light
|
||||||
let (pos, angle) = input.body.dist_along(Distance::meters(0.5));
|
let (pos, angle) = input.body.dist_along(Distance::meters(0.5));
|
||||||
// TODO rounded
|
// TODO rounded
|
||||||
let window_length_gap = Distance::meters(0.2);
|
let window_length_gap = Distance::meters(0.2);
|
||||||
@ -95,9 +99,6 @@ impl DrawCar {
|
|||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
TurnType::Crosswalk | TurnType::SharedSidewalkCorner => unreachable!(),
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
DrawCar {
|
DrawCar {
|
||||||
|
Loading…
Reference in New Issue
Block a user