mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-25 17:44:36 +00:00
Fix warship pathfinding (#2955)
## Description: As reported on Discord, warship could get stuck. This PR fixes the issue. ## Please complete the following: - [x] I have added screenshots for all UI updates - [x] I process any text displayed to the user through translateText() and I've added it to the en.json file - [x] I have added relevant tests to the test directory - [x] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced ## Please put your Discord username so you can be contacted if a bug or regression is found: moleole
This commit is contained in:
committed by
GitHub
parent
a4a41ac9f4
commit
566113c4de
@@ -47,8 +47,8 @@ export class PathFinding {
|
||||
return PathFinderBuilder.create(pf)
|
||||
.wrap((pf) => new ComponentCheckTransformer(pf, componentCheckFn))
|
||||
.wrap((pf) => new SmoothingWaterTransformer(pf, miniMap))
|
||||
.wrap((pf) => new ShoreCoercingTransformer(pf, miniMap))
|
||||
.wrap((pf) => new MiniMapTransformer(pf, game.map(), miniMap))
|
||||
.wrap((pf) => new ShoreCoercingTransformer(pf, game.map()))
|
||||
.buildWithStepper(tileStepperConfig(game));
|
||||
}
|
||||
|
||||
@@ -57,8 +57,8 @@ export class PathFinding {
|
||||
const pf = new AStarWater(miniMap);
|
||||
|
||||
return PathFinderBuilder.create(pf)
|
||||
.wrap((pf) => new ShoreCoercingTransformer(pf, miniMap))
|
||||
.wrap((pf) => new MiniMapTransformer(pf, game.map(), miniMap))
|
||||
.wrap((pf) => new ShoreCoercingTransformer(pf, game.map()))
|
||||
.buildWithStepper(tileStepperConfig(game));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user