From 1d98b8b8f02aecc8ddbba96aea47007a17448db6 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Sun, 2 Dec 2018 18:40:25 +0000 Subject: [PATCH] Fix damagestates in the map editor. --- OpenRA.Mods.Common/Graphics/ActorPreview.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/OpenRA.Mods.Common/Graphics/ActorPreview.cs b/OpenRA.Mods.Common/Graphics/ActorPreview.cs index 7153f1b4a2..a5825a415d 100644 --- a/OpenRA.Mods.Common/Graphics/ActorPreview.cs +++ b/OpenRA.Mods.Common/Graphics/ActorPreview.cs @@ -96,16 +96,16 @@ namespace OpenRA.Mods.Common.Graphics if (hf <= 0) return DamageState.Dead; - if (hf < 0.25f) + if (hf < 25) return DamageState.Critical; - if (hf < 0.5f) + if (hf < 50) return DamageState.Heavy; - if (hf < 0.75f) + if (hf < 75) return DamageState.Medium; - if (hf < 1.0f) + if (hf < 100) return DamageState.Light; return DamageState.Undamaged;