Moved DebugCheck
This commit is contained in:
parent
0d0fa7e88d
commit
1457adbb45
1 changed files with 3 additions and 3 deletions
|
@ -102,9 +102,6 @@ local int MoveToResource(Unit* unit,const Resource* resource)
|
|||
break;
|
||||
}
|
||||
|
||||
// FIXME: 0 can happen, if to near placed by map designer.
|
||||
DebugCheck( MapDistanceToUnit(unit->X,unit->Y,goal)>1 );
|
||||
|
||||
//
|
||||
// Target is dead, stop getting resources.
|
||||
//
|
||||
|
@ -131,6 +128,9 @@ local int MoveToResource(Unit* unit,const Resource* resource)
|
|||
return 0;
|
||||
}
|
||||
|
||||
// FIXME: 0 can happen, if to near placed by map designer.
|
||||
DebugCheck( MapDistanceToUnit(unit->X,unit->Y,goal)>1 );
|
||||
|
||||
DebugCheck( unit->Wait!=1 );
|
||||
DebugCheck( unit->Orders[0].Action!=resource->Action );
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue