Use WVec overload of Util.GetFacing where possible.

This commit is contained in:
Paul Chote
2013-07-06 20:36:49 +12:00
parent 7883b1bd7f
commit d0bed06765
9 changed files with 11 additions and 11 deletions

View File

@@ -71,7 +71,7 @@ namespace OpenRA.Mods.RA
public bool FaceTarget(Actor self, Target target)
{
desiredFacing = Util.GetFacing(target.CenterLocation - self.CenterLocation, turretFacing);
desiredFacing = Util.GetFacing(target.CenterPosition - self.CenterPosition, turretFacing);
return turretFacing == desiredFacing;
}