mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-24 22:44:38 +00:00
made name rendering more efficient
This commit is contained in:
@@ -95,6 +95,7 @@ export class PlayerExecution implements Execution {
|
||||
clusters.sort((a, b) => b.size - a.size);
|
||||
|
||||
const main = clusters.shift()
|
||||
this.player.largestClusterBoundingBox = calculateBoundingBox(this.mg, main)
|
||||
const surroundedBy = this.surroundedBySamePlayer(main)
|
||||
if (surroundedBy && !this.player.isAlliedWith(surroundedBy)) {
|
||||
this.removeCluster(main)
|
||||
|
||||
Reference in New Issue
Block a user