Fix damagestates in the map editor.

This commit is contained in:
Paul Chote
2018-12-02 18:40:25 +00:00
committed by reaperrr
parent 07fc67f58d
commit 1d98b8b8f0

View File

@@ -96,16 +96,16 @@ namespace OpenRA.Mods.Common.Graphics
if (hf <= 0) if (hf <= 0)
return DamageState.Dead; return DamageState.Dead;
if (hf < 0.25f) if (hf < 25)
return DamageState.Critical; return DamageState.Critical;
if (hf < 0.5f) if (hf < 50)
return DamageState.Heavy; return DamageState.Heavy;
if (hf < 0.75f) if (hf < 75)
return DamageState.Medium; return DamageState.Medium;
if (hf < 1.0f) if (hf < 100)
return DamageState.Light; return DamageState.Light;
return DamageState.Undamaged; return DamageState.Undamaged;