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:
Arkadiusz Sygulski
2026-01-19 17:09:17 +01:00
committed by GitHub
parent a4a41ac9f4
commit 566113c4de
+2 -2
View File
@@ -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));
}