Fix warning in release.

This commit is contained in:
Joris 2012-06-20 14:37:25 +02:00
parent 6534ded89e
commit b354b21604

View file

@ -1033,11 +1033,13 @@ bool COrder_Resource::WaitInDepot(CUnit &unit)
this->SetGoal(goal);
this->goalPos.x = this->goalPos.y = -1;
} else {
#ifdef DEBUG
const Vec2i& pos = mine ? mine->tilePos : unit.tilePos;
DebugPrint("%d: Worker %d report: [%d,%d] Resource gone near [%d,%d] in range %d. Sit and play dumb.\n"
_C_ unit.Player->Index _C_ unit.Slot
_C_ unit.tilePos.x _C_ unit.tilePos.y
_C_ pos.x _C_ pos.y _C_ range);
#endif // DEBUG
if (depot) {
DropOutOnSide(unit, LookingW, depot);
}