Fix double-chronoshift return location exploit.
This commit is contained in:
@@ -101,8 +101,14 @@ namespace OpenRA.Mods.Cnc.Traits
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Set up return-to-origin info
|
// Set up return-to-origin info
|
||||||
|
// If this actor is already counting down to return to
|
||||||
|
// an existing location then we shouldn't override it
|
||||||
|
if (ReturnTicks <= 0)
|
||||||
|
{
|
||||||
Origin = self.Location;
|
Origin = self.Location;
|
||||||
ReturnTicks = duration;
|
ReturnTicks = duration;
|
||||||
|
}
|
||||||
|
|
||||||
this.duration = duration;
|
this.duration = duration;
|
||||||
this.chronosphere = chronosphere;
|
this.chronosphere = chronosphere;
|
||||||
this.killCargo = killCargo;
|
this.killCargo = killCargo;
|
||||||
|
|||||||
Reference in New Issue
Block a user