From 32ea46fc2317d0b62ad9dc4d8cb4c802dc5fb1fc Mon Sep 17 00:00:00 2001 From: johns <> Date: Wed, 14 Mar 2001 00:04:10 +0000 Subject: [PATCH] Better debug message. --- src/pathfinder/pathfinder.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/pathfinder/pathfinder.cpp b/src/pathfinder/pathfinder.cpp index e12aa7438..40be60a88 100644 --- a/src/pathfinder/pathfinder.cpp +++ b/src/pathfinder/pathfinder.cpp @@ -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;