Have reinforcements come immediately..

This commit is contained in:
Scott_NZ
2012-08-11 22:29:53 +12:00
parent bdbb9d2a9f
commit f479f9a32d

View File

@@ -96,9 +96,9 @@ namespace OpenRA.Mods.RA.Missions
{
DisplayObjective();
}
if (world.FrameNumber == 1)
if (world.FrameNumber == 200)
{
StartReinforcementsTimer();
SendReinforcements();
}
if (!engineerMiss.Destroyed && engineer == null && AlliesControlMiss())
{
@@ -146,13 +146,6 @@ namespace OpenRA.Mods.RA.Missions
world.CreateActor(SignalFlareName, new TypeDictionary { new OwnerInit(allies1), new LocationInit(extractionLZ.Location) });
}
void StartReinforcementsTimer()
{
var timer = new CountdownTimerWidget("Reinforcements arrive in", 1500 * 12, ReinforcementsTimerExpired, new float2(128, 64));
Ui.Root.AddChild(timer);
Sound.Play("timergo1.aud");
}
void StartChinookTimer()
{
var timer = new CountdownTimerWidget("Extraction arrives in", 1500 * 6, ChinookTimerExpired, new float2(128, 96));
@@ -160,12 +153,6 @@ namespace OpenRA.Mods.RA.Missions
Sound.Play("timergo1.aud");
}
void ReinforcementsTimerExpired(CountdownTimerWidget timer)
{
timer.Visible = false;
SendReinforcements();
}
void ChinookTimerExpired(CountdownTimerWidget timer)
{
timer.Visible = false;