Fix chance_flee for enemies that move via waypoints

Fixes #758