Skip to content
This repository has been archived by the owner on Feb 16, 2022. It is now read-only.

Commit

Permalink
Update off-route shuttle headings when shuttle sliding is enabled (#313)
Browse files Browse the repository at this point in the history
  • Loading branch information
MattCzyr committed Dec 4, 2020
1 parent 68419b8 commit 3e8b9af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/structures/vehicle.ts
Expand Up @@ -112,7 +112,7 @@ export default class Vehicle {
}

public setHeading(heading: number) {
if (!store.state.settings.shuttleSlideEnabled) {
if (!store.state.settings.shuttleSlideEnabled || this.pointIndex == null || this.endPointIndex == null) {
this.marker.setRotationAngle(heading - 45);
this.marker.bindPopup(this.getMessage());
} else {
Expand Down

0 comments on commit 3e8b9af

Please sign in to comment.