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

@@ -45,7 +45,7 @@ namespace OpenRA.Mods.RA
public void Tick(Actor self)
{
history.Tick(self.CenterLocation - new PVecInt(0, move.Altitude) - Combat.GetTurretPosition(self, facing, contrailTurret));
history.Tick(self.CenterLocation - new PVecInt(0, move.Altitude) - (PVecInt)Combat.GetTurretPosition(self, facing, contrailTurret).ToInt2());
}
public void RenderAfterWorld(WorldRenderer wr, Actor self) { history.Render(self); }