drop spurious 'self' from ReserveSpawnBuilding, GetActorBelow

This commit is contained in:
Chris Forbes
2011-10-08 22:07:15 +13:00
parent c7f780eb1d
commit 9719e10edd
2 changed files with 4 additions and 4 deletions

View File

@@ -124,7 +124,7 @@ namespace OpenRA.Mods.RA.Air
Info = info;
}
public Actor GetActorBelow( Actor self )
public Actor GetActorBelow()
{
if (self.Trait<IMove>().Altitude != 0)
return null; // not on the ground.
@@ -133,11 +133,11 @@ namespace OpenRA.Mods.RA.Air
.FirstOrDefault( a => a.HasTrait<Reservable>() );
}
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;

View File

@@ -32,7 +32,7 @@ namespace OpenRA.Mods.RA.Air
if (firstTick)
{
firstTick = false;
ReserveSpawnBuilding(self);
ReserveSpawnBuilding();
}
}