vanish at the end of the last lane, not the beginning

This commit is contained in:
Dustin Carlino 2018-08-07 14:16:28 -07:00
parent bdb21f5eef
commit 7e6a48ebc6

View File

@ -52,7 +52,7 @@ impl Car {
sim: &DrivingSimState,
intersections: &IntersectionSimState,
) -> Action {
if self.path.is_empty() {
if self.path.is_empty() && self.dist_along == self.on.length(map) {
return Action::Vanish;
}