0159: fix angle calculation for generated courses