use the player statistics everywhere

This commit is contained in:
Matthias Mailänder
2013-08-10 11:42:31 +02:00
parent c98dfd0439
commit 5dcf1c755c
3 changed files with 8 additions and 7 deletions

View File

@@ -252,7 +252,7 @@ namespace OpenRA.Mods.RA.Missions
void UpdateDeaths()
{
var unitDeaths = allies1.Deaths + allies2.Deaths;
var unitDeaths = allies1.PlayerActor.Trait<PlayerStatistics>().UnitsDead + allies2.PlayerActor.Trait<PlayerStatistics>().UnitsDead;
fewDeaths.Text = FewDeathsTemplate.F(unitDeaths, DeathsThreshold);
OnObjectivesUpdated(false);
if (unitDeaths >= DeathsThreshold && fewDeaths.Status == ObjectiveStatus.InProgress)