]> git.mxchange.org Git - flightgear.git/blobdiff - Time/light.cxx
Converted fgFLIGHT to a class.
[flightgear.git] / Time / light.cxx
index b8a4a559972384038dc2eae2006904a640911b87..6cea78b11245f6a68dd31b4ad16df99c320ad69b 100644 (file)
 #include <GL/glut.h>
 #include <XGL/xgl.h>
 
+#ifdef __BORLANDC__
+#  define exception c_exception
+#endif
+#include <math.h>
+
 #include <string.h>
 
 #include <Aircraft/aircraft.hxx>
@@ -159,7 +164,7 @@ void fgLIGHT::UpdateAdjFog( void ) {
 
     // first determine the difference between our view angle and local
     // direction to the sun
-    rotation = -(sun_rotation + FG_PI) - (FG_Psi - v->view_offset) ;
+    rotation = -(sun_rotation + FG_PI) - (f->get_Psi() - v->view_offset) ;
     while ( rotation < 0 ) {
        rotation += FG_2PI;
     }
@@ -212,6 +217,12 @@ fgLIGHT::~fgLIGHT( void ) {
 
 
 // $Log$
+// Revision 1.22  1998/12/03 01:18:42  curt
+// Converted fgFLIGHT to a class.
+//
+// Revision 1.21  1998/11/23 21:49:09  curt
+// Borland portability tweaks.
+//
 // Revision 1.20  1998/11/06 21:18:27  curt
 // Converted to new logstream debugging facility.  This allows release
 // builds with no messages at all (and no performance impact) by using