bugfix: when checking last tile update in calculate clusters and name layer

This commit is contained in:
Evan
2024-12-12 20:31:08 -08:00
parent 26024dd623
commit 939761fc76
4 changed files with 24 additions and 22 deletions
+2 -2
View File
@@ -13,8 +13,8 @@ export const devConfig = new class extends DefaultConfig {
return 95
}
numSpawnPhaseTurns(gameType: GameType): number {
// return 40
return 1000
return 40
// return 100
}
gameCreationRate(): number {
return 10 * 1000
+2 -2
View File
@@ -65,8 +65,8 @@ export class PlayerExecution implements Execution {
if (ticks - this.lastCalc > this.ticksPerClusterCalc) {
this.lastCalc = ticks
if (ticks - this.player.lastTileChange() < this.ticksPerClusterCalc) {
if (this.player.lastTileChange() > this.lastCalc) {
this.lastCalc = ticks
const start = performance.now()
this.removeClusters()
const end = performance.now()