From 06375fe1a3306b68839102cde5fc59f3a26525c9 Mon Sep 17 00:00:00 2001 From: Curtis Shmyr Date: Thu, 13 Jun 2013 18:31:30 -0600 Subject: [PATCH] Fix BuildTimeSpeedReduction being one step (building) too early with build speed reduction --- OpenRA.Mods.RA/Player/ClassicProductionQueue.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.RA/Player/ClassicProductionQueue.cs b/OpenRA.Mods.RA/Player/ClassicProductionQueue.cs index 1cf3671997..d347e899a6 100755 --- a/OpenRA.Mods.RA/Player/ClassicProductionQueue.cs +++ b/OpenRA.Mods.RA/Player/ClassicProductionQueue.cs @@ -106,7 +106,7 @@ namespace OpenRA.Mods.RA .Where(p => p.Trait.Info.Produces.Contains(unit.Traits.Get().Queue)) .Where(p => p.Actor.Owner == self.Owner).ToArray(); - var speedModifier = Math.Min(selfsameBuildings.Count(), Info.BuildTimeSpeedReduction.Length - 1); + var speedModifier = Math.Min(selfsameBuildings.Count(), Info.BuildTimeSpeedReduction.Length) - 1; time = (time * Info.BuildTimeSpeedReduction[speedModifier]) / 100; }