CenterLocation.ToCPos() -> CenterPosition.ToCPos().

This commit is contained in:
Paul Chote
2013-07-06 19:32:37 +12:00
parent e741e83fd4
commit 9eaeeffae9
18 changed files with 19 additions and 19 deletions

View File

@@ -33,7 +33,7 @@ namespace OpenRA.Mods.RA.Activities
if (IsCanceled) return NextActivity;
if (!Target.IsValid) return NextActivity;
var inRange = ( Target.CenterLocation.ToCPos() - self.Location ).LengthSquared < Range * Range;
var inRange = ( Target.CenterPosition.ToCPos() - self.Location ).LengthSquared < Range * Range;
if( inRange ) return this;
if (--nextPathTime > 0) return this;