Always make sure to be on the host actor when repairing

This commit is contained in:
abcdefg30
2017-05-26 09:49:17 +02:00
committed by reaperrr
parent 2e0d7d0e79
commit 1f93029e51
4 changed files with 8 additions and 7 deletions

View File

@@ -19,17 +19,14 @@ namespace OpenRA.Mods.Common.Activities
{
public class Repair : Activity
{
readonly Health health;
readonly RepairsUnits[] allRepairsUnits;
readonly Target host;
readonly WDist closeEnough;
int remainingTicks;
Health health;
bool played = false;
public Repair(Actor self, Actor host)
: this(self, host, WDist.Zero) { }
public Repair(Actor self, Actor host, WDist closeEnough)
{
this.host = Target.FromActor(host);