Fix icons for dead SAMs showing as damaged.

Fixes https://github.com/dcs-liberation/dcs_liberation/issues/1099
This commit is contained in:
Dan Albert 2021-05-20 23:55:24 -07:00
parent 39b9a7f0ed
commit 7e7a1dce7b

View File

@ -403,10 +403,10 @@ class TheaterGroundObject {
icon() {
let state;
if (this.tgo.category == "aa" && !this.samIsThreat()) {
state = UnitState.Damaged;
} else if (this.tgo.dead) {
if (this.tgo.dead) {
state = UnitState.Destroyed;
} else if (this.tgo.category == "aa" && !this.samIsThreat()) {
state = UnitState.Damaged;
} else {
state = UnitState.Alive;
}