Just add or subtract 45°:
my.pan += ang(temp_angle.pan + 45 - my.pan) * 0.45 * time_step;

If you move your enemy via the first (local) c_move argument you will need to rotate the speed vector by 45°, or adapt the global c_move direction vector accordingly.


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends