mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Fix icons for dead SAMs showing as damaged.
Fixes https://github.com/dcs-liberation/dcs_liberation/issues/1099
This commit is contained in:
parent
39b9a7f0ed
commit
7e7a1dce7b
@ -403,10 +403,10 @@ class TheaterGroundObject {
|
|||||||
|
|
||||||
icon() {
|
icon() {
|
||||||
let state;
|
let state;
|
||||||
if (this.tgo.category == "aa" && !this.samIsThreat()) {
|
if (this.tgo.dead) {
|
||||||
state = UnitState.Damaged;
|
|
||||||
} else if (this.tgo.dead) {
|
|
||||||
state = UnitState.Destroyed;
|
state = UnitState.Destroyed;
|
||||||
|
} else if (this.tgo.category == "aa" && !this.samIsThreat()) {
|
||||||
|
state = UnitState.Damaged;
|
||||||
} else {
|
} else {
|
||||||
state = UnitState.Alive;
|
state = UnitState.Alive;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user