]> git.mxchange.org Git - flightgear.git/blobdiff - Scenery/astro.c
Prepended "fg" on the name of all global structures that didn't have it yet.
[flightgear.git] / Scenery / astro.c
index a9534696352defea479b873ddc0cc67ee87d764c..6246a713164ab32410dfde638e6f1894836d8726 100644 (file)
@@ -68,12 +68,14 @@ void fgAstroInit() {
 
 /* Render Astronomical Objects */
 void fgAstroRender() {
-    struct FLIGHT *f;
-    struct VIEW *v;
+    struct fgFLIGHT *f;
+    struct fgLIGHT *l;
+    struct fgVIEW *v;
     struct fgTIME *t;
     double angle;
 
     f = &current_aircraft.flight;
+    l = &cur_light_params;
     t = &cur_time_params;
     v = &current_view;
 
@@ -88,7 +90,7 @@ void fgAstroRender() {
     glDisable( GL_FOG );
 
     /* reverse light direction so the moon is displayed properly */
-    glLightfv( GL_LIGHT0, GL_POSITION, t->sun_vec_inv );
+    glLightfv( GL_LIGHT0, GL_POSITION, l->sun_vec_inv );
 
     glPushMatrix();
 
@@ -119,7 +121,14 @@ void fgAstroRender() {
 
 
 /* $Log$
-/* Revision 1.1  1997/11/25 23:20:22  curt
-/* Initial revision.
+/* Revision 1.3  1997/12/10 22:37:49  curt
+/* Prepended "fg" on the name of all global structures that didn't have it yet.
+/* i.e. "struct WEATHER {}" became "struct fgWEATHER {}"
 /*
+ * Revision 1.2  1997/12/09 04:25:33  curt
+ * Working on adding a global lighting params structure.
+ *
+ * Revision 1.1  1997/11/25 23:20:22  curt
+ * Initial revision.
+ *
  */