Don't hog the CPU trying to path to the enemy base in Allies 03, to line up with Allies 02

This commit is contained in:
Scott_NZ
2012-11-25 09:57:40 +13:00
parent 4c7f215559
commit ec423db4e5

View File

@@ -151,6 +151,10 @@ namespace OpenRA.Mods.RA.Missions
Sound.Play("reinfor1.aud"); Sound.Play("reinfor1.aud");
SpawnReinforcements(); SpawnReinforcements();
} }
if (world.FrameNumber % 25 == 0)
{
ManageSovietUnits();
}
if (objectives[AirbaseID].Status != ObjectiveStatus.Completed) if (objectives[AirbaseID].Status != ObjectiveStatus.Completed)
{ {
if (world.FrameNumber % 25 == 0) if (world.FrameNumber % 25 == 0)
@@ -159,7 +163,6 @@ namespace OpenRA.Mods.RA.Missions
} }
ManageSovietAircraft(); ManageSovietAircraft();
} }
ManageSovietUnits();
EvacuateAlliedUnits(exit1TopLeft.CenterLocation, exit1BottomRight.CenterLocation, exit1ExitPoint.Location); EvacuateAlliedUnits(exit1TopLeft.CenterLocation, exit1BottomRight.CenterLocation, exit1ExitPoint.Location);
EvacuateAlliedUnits(exit2TopLeft.CenterLocation, exit2BottomRight.CenterLocation, exit2ExitPoint.Location); EvacuateAlliedUnits(exit2TopLeft.CenterLocation, exit2BottomRight.CenterLocation, exit2ExitPoint.Location);
CheckSovietAirbase(); CheckSovietAirbase();