Migrate BuildSpeed from float to int

This commit is contained in:
reaperrr
2016-03-24 16:45:22 +01:00
parent a0f9af1ebe
commit 38cea38f6b
11 changed files with 54 additions and 38 deletions

View File

@@ -128,7 +128,7 @@ namespace OpenRA.Mods.Common.Traits
if (self.World.AllowDevCommands && self.Owner.PlayerActor.Trait<DeveloperMode>().FastBuild)
return 0;
var time = (int)(unit.GetBuildTime() * Info.BuildSpeed);
var time = unit.GetBuildTime() * Info.BuildSpeed / 100;
if (info.SpeedUp)
{