diff --git a/resources/ui/map/map.js b/resources/ui/map/map.js index 8a508a3a..caf6d9fa 100644 --- a/resources/ui/map/map.js +++ b/resources/ui/map/map.js @@ -488,6 +488,13 @@ class TheaterGroundObject { } draw() { + if (!this.tgo.blue && this.tgo.dead) { + // Don't bother drawing dead opfor TGOs. Blue is worth showing because + // some of them can be repaired, but the player can't interact with dead + // red things so there's no point in showing them. + return; + } + L.marker(this.tgo.position, { icon: this.icon() }) .bindTooltip(`${this.tgo.name}
${this.tgo.units.join("
")}`) .on("click", () => this.tgo.showInfoDialog())