mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-24 09:00:49 +00:00
use GameMap for storage in worker thread
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user