else after return is silly
This commit is contained in:
@@ -40,14 +40,14 @@ namespace OpenRA.Mods.RA.Activities
|
|||||||
var iao = proc.Trait<IAcceptOre>();
|
var iao = proc.Trait<IAcceptOre>();
|
||||||
|
|
||||||
if( self.Location != proc.Location + iao.DeliverOffset )
|
if( self.Location != proc.Location + iao.DeliverOffset )
|
||||||
{
|
|
||||||
return Util.SequenceActivities( mobile.MoveTo(proc.Location + iao.DeliverOffset, 0), this );
|
return Util.SequenceActivities( mobile.MoveTo(proc.Location + iao.DeliverOffset, 0), this );
|
||||||
}
|
|
||||||
else if (!isDocking)
|
if (!isDocking)
|
||||||
{
|
{
|
||||||
isDocking = true;
|
isDocking = true;
|
||||||
iao.OnDock(self, this);
|
iao.OnDock(self, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
return Util.SequenceActivities( new Wait(10), this );
|
return Util.SequenceActivities( new Wait(10), this );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user