tank production works
This commit is contained in:
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user