fix bug wrt tiberium infantry damage splashing; fix bug where Mobile+Production units didn't work right

This commit is contained in:
Bob
2010-09-09 14:40:58 +12:00
parent f70a6aafb1
commit 9e53774299
3 changed files with 20 additions and 30 deletions

View File

@@ -271,7 +271,7 @@ namespace OpenRA.Traits
var sp = self.TraitsImplementing<Production>().Where(p => p.Info.Produces.Contains(Info.Type)).FirstOrDefault();
if (sp != null && !IsDisabledBuilding(self) && sp.Produce(self, Rules.Info[ name ]))
FinishProduction();
}
}
}
}