Skip to content

Commit

Permalink
Merge pull request #4597 from LearnHub/fast-switch-waypoint-fragments
Browse files Browse the repository at this point in the history
Fix for URL waypoint fragments when using fast switching
  • Loading branch information
netpro2k authored Sep 28, 2021
2 parents 1e11d0f + 8f8e39d commit bd61583
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/systems/waypoint-system.js
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,9 @@ export class WaypointSystem {
this.nextMoveToSpawnResolve = resolve;
});
}
// Reset system state to allow for waypoint selection based on URL fragments
this.previousWaypointHash = null;
this.initialSpawnHappened = false;
return this.nextMoveToSpawn;
}
moveToWaypoint(waypointComponent, instant) {
Expand Down

0 comments on commit bd61583

Please sign in to comment.