always draw brake light with turn signals

This commit is contained in:
Dustin Carlino 2020-01-13 09:08:51 -08:00
parent 288538b14b
commit 649d0ddbda

View File

@ -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 {