From 2fd1576d151918ac636ff2563df87b447cb1fc29 Mon Sep 17 00:00:00 2001 From: abcdefg30 Date: Sun, 18 Jan 2015 20:36:26 +0100 Subject: [PATCH] Ignore buildlimits with AllTech cheat --- OpenRA.Mods.Common/Traits/Player/ProductionQueue.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.Common/Traits/Player/ProductionQueue.cs b/OpenRA.Mods.Common/Traits/Player/ProductionQueue.cs index 06e275b470..739a2e2665 100644 --- a/OpenRA.Mods.Common/Traits/Player/ProductionQueue.cs +++ b/OpenRA.Mods.Common/Traits/Player/ProductionQueue.cs @@ -267,7 +267,7 @@ namespace OpenRA.Mods.Common.Traits // Check if the player is trying to build more units that they are allowed var fromLimit = int.MaxValue; - if (bi.BuildLimit > 0) + if (!developerMode.AllTech && bi.BuildLimit > 0) { var inQueue = queue.Count(pi => pi.Item == order.TargetString); var owned = self.Owner.World.ActorsWithTrait().Count(a => a.Actor.Info.Name == order.TargetString && a.Actor.Owner == self.Owner);