tank production works

This commit is contained in:
Chris Forbes
2009-10-24 16:24:44 +13:00
parent ea3526a238
commit 979bb74bba
2 changed files with 28 additions and 6 deletions

View File

@@ -59,10 +59,15 @@ namespace OpenRa.Game
}
public void Build(SidebarItem item)
{
if (item != null)
Game.controller.orderGenerator = new PlaceBuilding(Game.LocalPlayer,
item.techTreeItem.tag.ToLowerInvariant());
{
if (item != null)
{
if (item.techTreeItem.IsStructure)
Game.controller.orderGenerator = new PlaceBuilding(Game.LocalPlayer,
item.techTreeItem.tag.ToLowerInvariant());
else
Game.BuildUnit(Game.LocalPlayer, item.techTreeItem.tag.ToLowerInvariant());
}
}
void LoadSprites( string category, string group )