diff --git a/src/client/graphics/layers/StructureLayer.ts b/src/client/graphics/layers/StructureLayer.ts index 5b807c8fd..e836d1f61 100644 --- a/src/client/graphics/layers/StructureLayer.ts +++ b/src/client/graphics/layers/StructureLayer.ts @@ -124,6 +124,10 @@ export class StructureLayer implements Layer { this.clearCell(new Cell(this.game.x(tile), this.game.y(tile))); } + if (!unit.isActive()) { + return + } + // Draw border and territory for (const tile of this.game.bfs(unit.tile(), euclDistFN(unit.tile(), config.borderRadius))) { this.paintCell(