]> git.mxchange.org Git - flightgear.git/blobdiff - Astro/sky.cxx
Renamed class fgFLIGHT to class FGState as per request by JSB.
[flightgear.git] / Astro / sky.cxx
index f2c8c58ca3534582cdd0a942a0da99347ad8610b..433ec7ed0269cc2634363514efed874925cb9f6c 100644 (file)
@@ -255,7 +255,7 @@ void fgSkyInit( void ) {
 
 // Draw the Sky
 void fgSkyRender( void ) {
-    fgFLIGHT *f;
+    FGState *f;
     fgLIGHT *l;
     fgVIEW *v;
     float inner_color[4];
@@ -264,7 +264,7 @@ void fgSkyRender( void ) {
     double diff;
     int i;
 
-    f = current_aircraft.flight;
+    f = current_aircraft.fdm_state;
     l = &cur_light_params;
     v = &current_view;
 
@@ -295,8 +295,8 @@ void fgSkyRender( void ) {
     // Rotate to proper orientation
     // printf("  lon = %.2f  lat = %.2f\n", FG_Longitude * RAD_TO_DEG,
     //        FG_Latitude * RAD_TO_DEG);
-    xglRotatef( FG_Longitude * RAD_TO_DEG, 0.0, 0.0, 1.0 );
-    xglRotatef( 90.0 - FG_Latitude * RAD_TO_DEG, 0.0, 1.0, 0.0 );
+    xglRotatef( f->get_Longitude() * RAD_TO_DEG, 0.0, 0.0, 1.0 );
+    xglRotatef( 90.0 - f->get_Latitude() * RAD_TO_DEG, 0.0, 1.0, 0.0 );
     xglRotatef( l->sun_rotation * RAD_TO_DEG, 0.0, 0.0, 1.0 );
 
     // Draw inner/center section of sky*/
@@ -365,6 +365,13 @@ void fgSkyRender( void ) {
 
 
 // $Log$
+// Revision 1.16  1998/12/05 15:54:03  curt
+// Renamed class fgFLIGHT to class FGState as per request by JSB.
+//
+// Revision 1.15  1998/12/03 01:15:36  curt
+// Converted fgFLIGHT to a class.
+// Tweaks for Sun portability.
+//
 // Revision 1.14  1998/11/06 21:17:39  curt
 // Converted to new logstream debugging facility.  This allows release
 // builds with no messages at all (and no performance impact) by using