Found the feenableexcept() function, so expect more of these :)
Thanks to Ron for his help.

-- 
Csaba/Jester
Index: src/AIModel/AICarrier.cxx
===================================================================
RCS file: /var/cvs/FlightGear-0.9/source/src/AIModel/AICarrier.cxx,v
retrieving revision 1.25
diff -u -r1.25 AICarrier.cxx
--- src/AIModel/AICarrier.cxx	18 May 2008 21:05:11 -0000	1.25
+++ src/AIModel/AICarrier.cxx	2 Jan 2009 04:13:15 -0000
@@ -514,7 +514,7 @@
     + (rel_wind_speed_from_north_kts * rel_wind_speed_from_north_kts));
 
     //calculate the relative wind direction
-    rel_wind_from_deg = atan(rel_wind_speed_from_east_kts/rel_wind_speed_from_north_kts)
+    rel_wind_from_deg = atan2(rel_wind_speed_from_east_kts, rel_wind_speed_from_north_kts)
                             * SG_RADIANS_TO_DEGREES;
 
     // rationalise the output
------------------------------------------------------------------------------
_______________________________________________
Flightgear-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to