mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-10 13:24:37 +00:00
only calculate cluster when tile changes
This commit is contained in:
@@ -55,7 +55,6 @@ function initializeMap(data: { gameMap: GameMap }) {
|
||||
}
|
||||
|
||||
function findPath(terrainMap: TerrainMap, miniTerrainMap: TerrainMap, req: SearchRequest) {
|
||||
console.log(`terrain map height: ${terrainMap.height()}`)
|
||||
const aStar = new MiniAStar(
|
||||
terrainMap,
|
||||
miniTerrainMap,
|
||||
|
||||
Reference in New Issue
Block a user