mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Hide dead opfor objectives.
These are just clutter.
This commit is contained in:
parent
fa321c7ddc
commit
2ea0bccd25
@ -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}<br />${this.tgo.units.join("<br />")}`)
|
||||
.on("click", () => this.tgo.showInfoDialog())
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user