Moved DebugCheck
This commit is contained in:
parent
5f97391533
commit
dbb3e7e74a
1 changed files with 2 additions and 2 deletions
|
@ -353,8 +353,6 @@ local int MoveToDepot(Unit* unit,const Resource* resource)
|
|||
break;
|
||||
}
|
||||
|
||||
DebugCheck( MapDistanceToUnit(unit->X,unit->Y,goal)!=1 );
|
||||
|
||||
//
|
||||
// Target is dead, stop getting resources.
|
||||
//
|
||||
|
@ -381,6 +379,8 @@ local int MoveToDepot(Unit* unit,const Resource* resource)
|
|||
return 0;
|
||||
}
|
||||
|
||||
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