From bdfa6f6eccff8fc370c04ca21ef5eb308d27f7f6 Mon Sep 17 00:00:00 2001 From: Scott_NZ Date: Tue, 11 Dec 2012 16:07:36 +1300 Subject: [PATCH] Slight refactor --- OpenRA.Mods.RA/Missions/Allies03Script.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/OpenRA.Mods.RA/Missions/Allies03Script.cs b/OpenRA.Mods.RA/Missions/Allies03Script.cs index ce70e296a8..6f164b409c 100644 --- a/OpenRA.Mods.RA/Missions/Allies03Script.cs +++ b/OpenRA.Mods.RA/Missions/Allies03Script.cs @@ -101,7 +101,7 @@ namespace OpenRA.Mods.RA.Missions const int ParadropIncrement = 200; static readonly string[] ParadropTerrainTypes = { "Clear", "Road", "Rough", "Beach", "Ore" }; static readonly string[] SovietParadroppers = { "e1", "e1", "e3", "e3", "e4" }; - int paradrops; + int sovietParadrops; int maxSovietYaks; int attackAtFrame; @@ -174,7 +174,7 @@ namespace OpenRA.Mods.RA.Missions if (world.FrameNumber == ReinforcementsTicks2) { Sound.Play("reinfor1.aud"); } if (world.FrameNumber % 25 == 0) { SpawnAlliedUnit(Reinforcements2[currentReinforcement2++]); } } - if (paradrops > 0) + if (sovietParadrops > 0) { if (world.FrameNumber == ParadropTicks) { @@ -193,7 +193,7 @@ namespace OpenRA.Mods.RA.Missions } while (!ParadropTerrainTypes.Contains(world.GetTerrainType(lz))); MissionUtils.Paradrop(world, soviets, SovietParadroppers, entry, lz); - paradrops--; + sovietParadrops--; } } if (world.FrameNumber % 25 == 0) @@ -427,7 +427,7 @@ namespace OpenRA.Mods.RA.Missions minAttackAtFrame = difficulty == "Hard" || difficulty == "Normal" ? 100 : 150; unitsEvacuatedThreshold = difficulty == "Hard" ? 200 : difficulty == "Normal" ? 100 : 50; maxSovietYaks = difficulty == "Hard" ? 4 : difficulty == "Normal" ? 2 : 0; - paradrops = difficulty == "Hard" ? 40 : difficulty == "Normal" ? 20 : 0; + sovietParadrops = difficulty == "Hard" ? 40 : difficulty == "Normal" ? 20 : 0; objectives[EvacuateID].Text = objectives[EvacuateID].Text.F(unitsEvacuatedThreshold);