fix trailing whitespace everywhere

This commit is contained in:
Chris Forbes
2011-09-25 14:37:12 +13:00
parent 0eb98ef3b5
commit 55036cd58c
596 changed files with 3194 additions and 3194 deletions

View File

@@ -1,7 +1,7 @@
#region Copyright & License Information
/*
* Copyright 2007-2011 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation. For more information,
* see COPYING.
@@ -26,7 +26,7 @@ namespace OpenRA.Mods.RA
public readonly string[] ValidWater = {"Water"};
public readonly int SpawnInterval = 180; // Average time (seconds) between crate spawn
public readonly float WaterChance = .2f; // Chance of generating a water crate instead of a land crate
public object Create (ActorInitializer init) { return new CrateDrop(this); }
}
@@ -35,7 +35,7 @@ namespace OpenRA.Mods.RA
List<Actor> crates = new List<Actor>();
int ticks = 0;
CrateDropInfo Info;
public CrateDrop(CrateDropInfo info) { Info = info; }
public void Tick(Actor self)
@@ -45,7 +45,7 @@ namespace OpenRA.Mods.RA
ticks = Info.SpawnInterval * 25; // todo: randomize
crates.RemoveAll(x => !x.IsInWorld); // BUG: this removes crates that are cargo of a BADR!
var toSpawn = Math.Max(0, Info.Minimum - crates.Count)
+ (crates.Count < Info.Maximum ? 1 : 0);
@@ -53,7 +53,7 @@ namespace OpenRA.Mods.RA
SpawnCrate(self);
}
}
int2? ChooseDropCell(Actor self, bool inWater, int maxTries)
{
for( var n = 0; n < maxTries; n++ )
@@ -70,7 +70,7 @@ namespace OpenRA.Mods.RA
return p;
}
return null;
}
@@ -79,8 +79,8 @@ namespace OpenRA.Mods.RA
var inWater = self.World.SharedRandom.NextDouble() < Info.WaterChance;
var pp = ChooseDropCell(self, inWater, 100);
if (pp == null) return;
var p = pp.Value; //
var p = pp.Value; //
self.World.AddFrameEndTask(w =>
{
var crate = w.CreateActor(false, "crate", new TypeDictionary { new OwnerInit(w.WorldActor.Owner) });
@@ -94,7 +94,7 @@ namespace OpenRA.Mods.RA
new FacingInit( Util.GetFacing(p - startPos, 0) ),
new AltitudeInit( Rules.Info["badr"].Traits.Get<AircraftInfo>().CruiseAltitude ),
});
plane.CancelActivity();
plane.QueueActivity(new FlyAttack(Target.FromCell(p)));
plane.Trait<ParaDrop>().SetLZ(p);