always draw brake light with turn signals
@@ -77,7 +77,11 @@ impl DrawCar {
.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));
// TODO rounded
let window_length_gap = Distance::meters(0.2);
@@ -95,9 +99,6 @@ impl DrawCar {
),
);
}
- TurnType::Crosswalk | TurnType::SharedSidewalkCorner => unreachable!(),
- }
- }
}
DrawCar {
