Remove unused parameters and variables.
This commit is contained in:
committed by
abcdefg30
parent
07815143f1
commit
9d905d8291
@@ -73,7 +73,7 @@ namespace OpenRA.Mods.Common.Activities
|
||||
if (enterLegacyHut != null)
|
||||
enterLegacyHut.Repair(self);
|
||||
else if (enterHut != null)
|
||||
enterHut.Repair(enterActor, self);
|
||||
enterHut.Repair(self);
|
||||
|
||||
Game.Sound.PlayNotification(self.World.Map.Rules, self.Owner, "Speech", notification, self.Owner.Faction.InternalName);
|
||||
|
||||
|
||||
@@ -61,7 +61,7 @@ namespace OpenRA.Mods.Common.Activities
|
||||
if (targetActor != enterActor)
|
||||
return;
|
||||
|
||||
if (!enterCargo.CanLoad(enterActor, self))
|
||||
if (!enterCargo.CanLoad(self))
|
||||
return;
|
||||
|
||||
enterCargo.Load(enterActor, self);
|
||||
|
||||
@@ -30,7 +30,7 @@ namespace OpenRA.Mods.Common.Activities
|
||||
public bool SkipMakeAnims = false;
|
||||
public string Faction = null;
|
||||
|
||||
public Transform(Actor self, string toActor)
|
||||
public Transform(string toActor)
|
||||
{
|
||||
ToActor = toActor;
|
||||
}
|
||||
|
||||
@@ -92,7 +92,7 @@ namespace OpenRA.Mods.Common.Activities
|
||||
|
||||
public override bool Tick(Actor self)
|
||||
{
|
||||
if (IsCanceling || cargo.IsEmpty(self))
|
||||
if (IsCanceling || cargo.IsEmpty())
|
||||
return true;
|
||||
|
||||
if (cargo.CanUnload())
|
||||
@@ -100,7 +100,7 @@ namespace OpenRA.Mods.Common.Activities
|
||||
foreach (var inu in notifiers)
|
||||
inu.Unloading(self);
|
||||
|
||||
var actor = cargo.Peek(self);
|
||||
var actor = cargo.Peek();
|
||||
var spawn = self.CenterPosition;
|
||||
|
||||
var exitSubCell = ChooseExitSubCell(actor);
|
||||
|
||||
Reference in New Issue
Block a user