bugfix: don't render inactive structures

This commit is contained in:
Evan
2025-01-22 20:29:03 -08:00
parent d69a70121f
commit 96ab7e7f11
@@ -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(