Better debug message.

This commit is contained in:
johns 2001-03-14 00:04:10 +00:00
parent 6ebe0bed4f
commit 32ea46fc23

View file

@ -691,8 +691,9 @@ local int ComplexNewPath(Unit* unit,int gx,int gy,int ox,int oy
goal=UnitCacheOnXY(x,y,unit->Type->UnitType);
if( !goal ) {
// Should not happen.
DebugLevel0Fn("%p No goal for %d,%d on %d,%d?\n",
unit,unit->X,unit->Y,x,y);
DebugLevel0Fn("%Zd %s: No goal for %d,%d on %d,%d?\n",
UnitNumber(unit),unit->Type->Ident,
unit->X,unit->Y,x,y);
matrix[x+y*w]=99;
DebugCheck( 1 );
continue;