Convert actor speed to world coordinates.

This commit is contained in:
Paul Chote
2013-12-25 19:23:16 +13:00
parent c7914ec68f
commit 0b8dafcdf0
3 changed files with 3 additions and 3 deletions

View File

@@ -444,7 +444,7 @@ namespace OpenRA.Mods.RA.Move
decimal speed = Info.Speed * Info.TerrainSpeeds[type].Speed;
foreach (var t in self.TraitsImplementing<ISpeedModifier>())
speed *= t.GetSpeedModifier();
return (int)(speed / 100) * 1024 / (3 * Game.CellSize);
return (int)(speed / 100);
}
public void AddInfluence()