From 7e7a1dce7bf0a9d92d4e56d97f906b3468483175 Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Thu, 20 May 2021 23:55:24 -0700 Subject: [PATCH] Fix icons for dead SAMs showing as damaged. Fixes https://github.com/dcs-liberation/dcs_liberation/issues/1099 --- resources/ui/map/map.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/ui/map/map.js b/resources/ui/map/map.js index 1b421520..3e1056b2 100644 --- a/resources/ui/map/map.js +++ b/resources/ui/map/map.js @@ -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; }