You cannot use a fixed skalar where an angle is expected. The functions signature is vec_to_angle(ANGLE* ang, VECTOR* dir).


Always learn from history, to be sure you make the same mistakes again...