mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-12-29 17:34:58 +03:00
vanish at the end of the last lane, not the beginning
This commit is contained in:
parent
bdb21f5eef
commit
7e6a48ebc6
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user