Extend Enter activity class for (re)usability in enter/exit/dock logic

This commit is contained in:
atlimit8
2014-09-25 11:55:47 -05:00
parent 83acbe0266
commit af5b18a080
7 changed files with 250 additions and 24 deletions

View File

@@ -75,7 +75,7 @@ namespace OpenRA.Mods.RA
self.CancelActivity();
self.SetTargetLine(target, Color.Red);
self.QueueActivity(new Enter(target.Actor, new CaptureActor(target)));
self.QueueActivity(new Enter(self, target.Actor, new CaptureActor(target)));
}
class CaptureOrderTargeter : UnitOrderTargeter