From f7a52d5030df040bc2a20e1923346b4984a7e808 Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Mon, 16 Nov 2009 20:48:10 +1300 Subject: [PATCH] more chrome --- OpenRa.Game/Chrome.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/OpenRa.Game/Chrome.cs b/OpenRa.Game/Chrome.cs index cd7a431356..8c8d9606a0 100644 --- a/OpenRa.Game/Chrome.cs +++ b/OpenRa.Game/Chrome.cs @@ -77,6 +77,7 @@ namespace OpenRa.Game var buildableItems = Rules.TechTree.BuildableItems(Game.LocalPlayer, queueName).ToArray(); foreach (var item in Rules.TechTree.AllItems(Game.LocalPlayer, queueName)) { + if (Rules.UnitInfo[item].TechLevel == -1) continue; var rect = new Rectangle(Game.viewport.Width - (3 - x) * 64 - 20, 32 + 48 * y, 64, 48); buildPaletteRenderer.DrawSprite(sprites[item], Game.viewport.Location + new float2(rect.Location), 0);