use PVecFloat in Combat sub-routines

This commit is contained in:
Matthias Mailänder
2013-02-11 20:43:36 +01:00
parent 7e1ee0e2e5
commit 0085ac130b
4 changed files with 14 additions and 14 deletions

View File

@@ -126,7 +126,7 @@ namespace OpenRA.Mods.RA
firedBy = self,
target = target,
src = (self.CenterLocation + Combat.GetBarrelPosition(self, facing, Turret, barrel)),
src = (self.CenterLocation + (PVecInt)Combat.GetBarrelPosition(self, facing, Turret, barrel).ToInt2()),
srcAltitude = move != null ? move.Altitude : 0,
dest = target.CenterLocation,
destAltitude = destMove != null ? destMove.Altitude : 0,