Make infantry crushable, refactoring, fix UIM (in)sanity crash, fix unit production

This commit is contained in:
Paul Chote
2009-12-22 23:00:15 -08:00
parent 4667679f12
commit 0b0a1fe11d
5 changed files with 16 additions and 29 deletions

View File

@@ -21,7 +21,7 @@ namespace OpenRa.Game.Traits
public bool Produce( Actor self, UnitInfo producee )
{
var location = CreationLocation( self, producee );
if( location == null || !Game.UnitInfluence.GetUnitsAt( location.Value ).Any() )
if( location == null || Game.UnitInfluence.GetUnitsAt( location.Value ).Any() )
return false;
var newUnit = new Actor( producee, location.Value, self.Owner );