From: curt Date: Tue, 3 Feb 1998 23:20:08 +0000 (+0000) Subject: Lots of little tweaks to fix various consistency problems discovered by X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0bb3c2969a80b026b33b5852386c489a05773b3b;p=flightgear.git Lots of little tweaks to fix various consistency problems discovered by Solaris' CC. Fixed a bug in fg_debug.c with how the fgPrintf() wrapper passed arguments along to the real printf(). Also incorporated HUD changes by Michele America. --- diff --git a/Astro/orbits.c b/Astro/orbits.c index 452a7818a..6c82f79a4 100644 --- a/Astro/orbits.c +++ b/Astro/orbits.c @@ -150,6 +150,7 @@ void fgSolarSystemInit(struct fgTIME t) "Cannot open data file: '%s'\n", path); return; } + /* printf(" reading datafile %s\n", path); */ fgPrintf( FG_ASTRO, FG_INFO, " reading datafile %s\n", path); /* for all the objects... */ @@ -182,9 +183,15 @@ void fgSolarSystemUpdate(struct OrbElements *planet, struct fgTIME t) /* $Log$ -/* Revision 1.5 1998/02/02 20:53:22 curt -/* To version 0.29 +/* Revision 1.6 1998/02/03 23:20:11 curt +/* Lots of little tweaks to fix various consistency problems discovered by +/* Solaris' CC. Fixed a bug in fg_debug.c with how the fgPrintf() wrapper +/* passed arguments along to the real printf(). Also incorporated HUD changes +/* by Michele America. /* + * Revision 1.5 1998/02/02 20:53:22 curt + * To version 0.29 + * * Revision 1.4 1998/01/27 00:47:47 curt * Incorporated Paul Bleisch's new debug message * system and commandline/config file processing code. diff --git a/Astro/planets.c b/Astro/planets.c index f33e5e9c9..90dea620a 100644 --- a/Astro/planets.c +++ b/Astro/planets.c @@ -118,7 +118,7 @@ struct CelestialCoord fgCalculatePlanet(struct OrbElements planet, Nr = 2.9585076 + 6.6672E-7*actTime; B = asin ( sin (result.Declination) * cos(ir) - cos(result.Declination) * sin (ir) * sin (result.RightAscension - Nr)); - ring_magn = -2.6 * sin (abs(B)) + 1.2 * pow(sin(B),2); + ring_magn = -2.6 * sin (fabs(B)) + 1.2 * pow(sin(B),2); result.magnitude = -9.0 + 5*log10( r*R ) + 0.044 * FV + ring_magn; break; case 7: /* Uranus */ @@ -204,9 +204,15 @@ void fgPlanetsRender( void ) { /* $Log$ -/* Revision 1.4 1998/02/02 20:53:23 curt -/* To version 0.29 +/* Revision 1.5 1998/02/03 23:20:12 curt +/* Lots of little tweaks to fix various consistency problems discovered by +/* Solaris' CC. Fixed a bug in fg_debug.c with how the fgPrintf() wrapper +/* passed arguments along to the real printf(). Also incorporated HUD changes +/* by Michele America. /* + * Revision 1.4 1998/02/02 20:53:23 curt + * To version 0.29 + * * Revision 1.3 1998/01/27 00:47:47 curt * Incorporated Paul Bleisch's new debug message * system and commandline/config file processing code. diff --git a/Cockpit/cockpit.c b/Cockpit/cockpit.c index c3502d6b6..8a22819cb 100644 --- a/Cockpit/cockpit.c +++ b/Cockpit/cockpit.c @@ -57,7 +57,7 @@ struct fgCOCKPIT *fgCockpitInit( struct fgAIRCRAFT cur_aircraft ) if( cockpit == NULL ) return( NULL ); - cockpit->code = 1234; + cockpit->code = 1; /* It will be aircraft dependent */ cockpit->status = 0; /* If aircraft has HUD */ @@ -94,9 +94,15 @@ void fgCockpitUpdate( void ) /* $Log$ -/* Revision 1.8 1998/01/31 00:43:03 curt -/* Added MetroWorks patches from Carmen Volpe. +/* Revision 1.9 1998/02/03 23:20:14 curt +/* Lots of little tweaks to fix various consistency problems discovered by +/* Solaris' CC. Fixed a bug in fg_debug.c with how the fgPrintf() wrapper +/* passed arguments along to the real printf(). Also incorporated HUD changes +/* by Michele America. /* + * Revision 1.8 1998/01/31 00:43:03 curt + * Added MetroWorks patches from Carmen Volpe. + * * Revision 1.7 1998/01/27 00:47:51 curt * Incorporated Paul Bleisch's new debug message * system and commandline/config file processing code. diff --git a/Cockpit/hud.c b/Cockpit/hud.c index 5425d21b2..dce3cb573 100644 --- a/Cockpit/hud.c +++ b/Cockpit/hud.c @@ -24,22 +24,28 @@ **************************************************************************/ +#ifdef WIN32 +# include +#endif + #include #include +#include + #ifndef WIN32 # include /* for MAXINT */ #endif /* not WIN32 */ -#include "hud.h" -#include +#include "hud.h" #include -/* #include */ -#include +#include +#include
+#include #include #include +#include #include