Remove order latency checks from BaseBuilderQueueManager.

This commit is contained in:
Paul Chote
2021-08-24 14:03:35 +01:00
committed by teinarss
parent 8a587ddeab
commit 52b597d5d2
2 changed files with 3 additions and 4 deletions

View File

@@ -111,8 +111,7 @@ namespace OpenRA.Mods.Common.Traits
// Minimum should not be negative as delays in HackyAI could be zero.
var randomFactor = world.LocalRandom.Next(0, baseBuilder.Info.StructureProductionRandomBonusDelay);
// Needs to be at least 4 * OrderLatency because otherwise the AI frequently duplicates build orders (i.e. makes the same build decision twice)
waitTicks = active ? 4 * world.OrderLatency + baseBuilder.Info.StructureProductionActiveDelay + randomFactor
waitTicks = active ? baseBuilder.Info.StructureProductionActiveDelay + randomFactor
: baseBuilder.Info.StructureProductionInactiveDelay + randomFactor;
}