mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
We had a random chance of restarting the route to avoid getting the chaser stuck. This didn't work properly because the rerouting code was only triggered if `self.route.is_none()` or if the target moved significantly, and the random chance branch only set `bearing` to `None`. This change sets `self.route = None` to trigger rerouting.