From 1457adbb4580658186ad81851538195513176ba4 Mon Sep 17 00:00:00 2001 From: jsalmon3 <> Date: Wed, 5 Mar 2003 23:52:05 +0000 Subject: [PATCH] Moved DebugCheck --- src/action/action_resource.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/action/action_resource.cpp b/src/action/action_resource.cpp index 0e571a8b8..4dae0b05f 100644 --- a/src/action/action_resource.cpp +++ b/src/action/action_resource.cpp @@ -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 );