Should be greater than or equal to when comparing with death threshold

This commit is contained in:
Scott_NZ
2012-10-11 22:57:19 +13:00
parent 8c3aabb215
commit d9a6cc6b1c

View File

@@ -239,7 +239,7 @@ namespace OpenRA.Mods.RA.Missions
}
objectives[FewDeathsID].Text = FewDeathsTemplate.F(allies1.Deaths + allies2.Deaths);
OnObjectivesUpdated(false);
if (allies1.Deaths + allies2.Deaths > DeathsThreshold && objectives[FewDeathsID].Status == ObjectiveStatus.InProgress)
if (allies1.Deaths + allies2.Deaths >= DeathsThreshold && objectives[FewDeathsID].Status == ObjectiveStatus.InProgress)
{
objectives[FewDeathsID].Status = ObjectiveStatus.Failed;
OnObjectivesUpdated(true);