From 9719e10edd3e9761340b9863597d5f8c0126183b Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Sat, 8 Oct 2011 22:07:15 +1300 Subject: [PATCH] drop spurious 'self' from ReserveSpawnBuilding, GetActorBelow --- OpenRA.Mods.RA/Air/Aircraft.cs | 6 +++--- OpenRA.Mods.RA/Air/Plane.cs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/OpenRA.Mods.RA/Air/Aircraft.cs b/OpenRA.Mods.RA/Air/Aircraft.cs index 87b4bc6de1..2cb1081e16 100755 --- a/OpenRA.Mods.RA/Air/Aircraft.cs +++ b/OpenRA.Mods.RA/Air/Aircraft.cs @@ -124,7 +124,7 @@ namespace OpenRA.Mods.RA.Air Info = info; } - public Actor GetActorBelow( Actor self ) + public Actor GetActorBelow() { if (self.Trait().Altitude != 0) return null; // not on the ground. @@ -133,11 +133,11 @@ namespace OpenRA.Mods.RA.Air .FirstOrDefault( a => a.HasTrait() ); } - protected void ReserveSpawnBuilding( Actor self ) + protected void ReserveSpawnBuilding() { /* not spawning in the air, so try to assoc. with our afld. this is a hack. */ - var afld = GetActorBelow(self); + var afld = GetActorBelow(); if (afld == null) return; diff --git a/OpenRA.Mods.RA/Air/Plane.cs b/OpenRA.Mods.RA/Air/Plane.cs index cb93c14de2..6bf40d2bd5 100755 --- a/OpenRA.Mods.RA/Air/Plane.cs +++ b/OpenRA.Mods.RA/Air/Plane.cs @@ -32,7 +32,7 @@ namespace OpenRA.Mods.RA.Air if (firstTick) { firstTick = false; - ReserveSpawnBuilding(self); + ReserveSpawnBuilding(); } }