mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-26 17:32:44 +00:00
format
This commit is contained in:
@@ -148,8 +148,7 @@ export class PathFinder {
|
||||
}
|
||||
|
||||
if (this.game.manhattanDist(curr, dst) < dist) {
|
||||
// eslint-disable-next-line sort-keys
|
||||
return { type: PathFindResultType.Completed, node: curr };
|
||||
return { node: curr, type: PathFindResultType.Completed };
|
||||
}
|
||||
|
||||
if (this.computeFinished) {
|
||||
@@ -165,8 +164,8 @@ export class PathFinder {
|
||||
if (tile === undefined) {
|
||||
throw new Error("missing tile");
|
||||
}
|
||||
// eslint-disable-next-line sort-keys
|
||||
return { type: PathFindResultType.NextTile, node: tile };
|
||||
|
||||
return { node: tile, type: PathFindResultType.NextTile };
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user