use GameMap for storage in worker thread

This commit is contained in:
evanpelle
2025-02-01 12:05:11 -08:00
committed by Evan
parent b22532d41f
commit 2068e42982
10 changed files with 147 additions and 156 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ export class WinCheckExecution implements Execution {
return
}
const max = sorted[0]
if (max.numTilesOwned() / this.mg.terrainMap().numLandTiles() * 100 > this.mg.config().percentageTilesOwnedToWin()) {
if (max.numTilesOwned() / this.mg.map().numLandTiles() * 100 > this.mg.config().percentageTilesOwnedToWin()) {
this.mg.setWinner(max)
this.active = false
}