Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix trucks trying to drive into completed buildings instead of toward…
…s the building site. More generally, check that the returned pathfinding result is for the correct destination, rather than an old pathfinding job to a previous destination, leading to the droid thinking it was going to the new destination when it really wasn't. Droids were doing pathfinding, and occasionally they would pathfind to a building, which happens to get completed in the same update, so next update they would try to pathfind to the new building in the queue, but receive the path to the completed building. They would then continue to drive into the old building, until arriving at the new building (which never happens). Probably fixes other issues with droids mysteriously going the wrong way. Fixes ticket:3050 again (different bug, but similar symptom).
- Loading branch information
Showing
1 changed file
with
13 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters