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

@@ -46,9 +46,11 @@ namespace OpenRa.Game
[Conditional( "SANITY_CHECKS" )]
void SanityCheckAdd( IOccupySpace a )
{
/* This check is too strict now that we can have multiple units in a cell
foreach( var c in a.OccupiedCells() )
if( influence[c.X, c.Y].Any())
throw new InvalidOperationException( "UIM: Sanity check failed (Add)" );
*/
}
public IEnumerable<Actor> GetUnitsAt( int2 a )