UIM.Tick is no longer necessary. - Bugfix in move. - Speed up production even more (to encourage someone to fix unit production)

This commit is contained in:
Bob
2009-11-12 13:58:07 +13:00
parent c96d41b82f
commit a71e36688c
3 changed files with 8 additions and 6 deletions

View File

@@ -107,6 +107,8 @@ namespace OpenRa.Game.Traits.Activities
[Conditional( "SANITY_CHECKS")]
void SanityCheckPath( Mobile mobile )
{
if( path.Count == 0 )
return;
var d = path[path.Count-1] - mobile.toCell;
if( d.LengthSquared > 2 )
throw new InvalidOperationException( "(Move) Sanity check failed" );