Remove unused parameters and variables.
This commit is contained in:
committed by
abcdefg30
parent
07815143f1
commit
9d905d8291
@@ -85,7 +85,7 @@ namespace OpenRA.Mods.Cnc.Activities
|
||||
var cargo = self.TraitOrDefault<Cargo>();
|
||||
if (cargo != null && teleporter != null)
|
||||
{
|
||||
while (!cargo.IsEmpty(self))
|
||||
while (!cargo.IsEmpty())
|
||||
{
|
||||
var a = cargo.Unload(self);
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ namespace OpenRA.Mods.Cnc.Traits
|
||||
if (!info.Types.Overlaps(types))
|
||||
return;
|
||||
|
||||
var transform = new Transform(self, info.IntoActor)
|
||||
var transform = new Transform(info.IntoActor)
|
||||
{
|
||||
ForceHealthPercentage = info.ForceHealthPercentage,
|
||||
Faction = faction,
|
||||
|
||||
@@ -86,7 +86,7 @@ namespace OpenRA.Mods.Cnc.Traits
|
||||
|
||||
void Transform(Actor self)
|
||||
{
|
||||
var transform = new Transform(self, info.IntoActor);
|
||||
var transform = new Transform(info.IntoActor);
|
||||
|
||||
var facing = self.TraitOrDefault<IFacing>();
|
||||
if (facing != null)
|
||||
|
||||
Reference in New Issue
Block a user