git-svn-id: svn://svn.ijw.co.nz/svn/OpenRa@1332 993157c7-ee19-0410-b2c4-bb4e9862e678

This commit is contained in:
(no author)
2007-07-24 04:53:11 +00:00
parent ac87f06ef1
commit 983f56e840
4 changed files with 58 additions and 5 deletions

View File

@@ -65,6 +65,7 @@ namespace OpenRa.TechTree
public bool Build(string key, bool force)
{
if (string.IsNullOrEmpty(key)) return false;
Item b = objects[key];
if (!force && !b.CanBuild) return false;
built.Add(key);