unit.pathFinderData->output.Cycles++;//reset have to be manualy controled by caller.intmove = UnitShowAnimationScaled(unit, unit.Type->Animations->Move, Map.Field(unit.Offset)->Cost); unit.IX += posd.x * move; unit.IY += posd.y * move;// Finished move animation, set Moving to ...