Update objective code for Einstein helicopter, avoid race condition with checking if allies2 has been killed

This commit is contained in:
Scott_NZ
2012-09-22 16:41:37 +12:00
parent e3b2e84792
commit deede92fbc
2 changed files with 36 additions and 17 deletions

View File

@@ -55,9 +55,9 @@ namespace OpenRA.Mods.RA.Missions
Sound.Play("bleep6.aud");
}
void DisplayHint(string objective)
void DisplayHint(string hint)
{
Game.AddChatLine(Color.Yellow, "Hint", objective);
Game.AddChatLine(Color.Yellow, "Hint", hint);
Sound.Play("bleep6.aud");
}
@@ -163,7 +163,7 @@ namespace OpenRA.Mods.RA.Missions
MissionFailed("Einstein was killed.");
}
}
else if (MissionUtils.HasFlag(currentObjectives, Allies01Objectives.WaitForHelicopter))
if (MissionUtils.HasFlag(currentObjectives, Allies01Objectives.WaitForHelicopter))
{
if (world.FrameNumber >= currentAttackWaveFrameNumber + 600)
{