X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=Main%2FGLUTmain.c;h=9bd72805a0fc4565d72d99daf037ce7291ad14e3;hb=f1ec224b73dc81dc487836bbd45b6e21c10df0a5;hp=0a94cb303ee10b1da9074db76e53bc9aa56c2c17;hpb=a9fdc0e3415420bdfd2d90531447ddeb4390c2ad;p=flightgear.git diff --git a/Main/GLUTmain.c b/Main/GLUTmain.c index 0a94cb303..9bd72805a 100644 --- a/Main/GLUTmain.c +++ b/Main/GLUTmain.c @@ -70,7 +70,7 @@ static GLint winWidth, winHeight; /* pointer to scenery structure */ /* static GLint scenery, runway; */ -double Simtime; +/* double Simtime; */ /* Another hack */ int use_signals = 0; @@ -86,7 +86,7 @@ int displayInstruments; * fgInitVisuals() -- Initialize various GL/view parameters **************************************************************************/ -static void fgInitVisuals() { +static void fgInitVisuals( void ) { struct fgLIGHT *l; struct fgTIME *t; struct fgWEATHER *w; @@ -121,7 +121,7 @@ static void fgInitVisuals() { * Update the view volume, position, and orientation **************************************************************************/ -static void fgUpdateViewParams() { +static void fgUpdateViewParams( void ) { struct fgFLIGHT *f; struct fgLIGHT *l; struct fgTIME *t; @@ -183,7 +183,7 @@ static void fgUpdateViewParams() { /************************************************************************* * Draw a basic instrument panel ************************************************************************/ -static void fgUpdateInstrViewParams() { +static void fgUpdateInstrViewParams( void ) { xglViewport(0, 0 , (GLint)winWidth, (GLint)winHeight / 2); xglMatrixMode(GL_PROJECTION); @@ -357,7 +357,7 @@ void fgUpdateTimeDepCalcs(int multi_loop) { } -void fgInitTimeDepCalcs() { +void fgInitTimeDepCalcs( void ) { /* initialize timer */ #ifdef USE_ITIMER @@ -517,7 +517,7 @@ static void fgMainLoop( void ) { FG_Altitude * FEET_TO_METER); } - /* fgAircraftOutputCurrent(a); */ + fgAircraftOutputCurrent(a); /* see if we need to load any new scenery tiles */ /* fgTileMgrUpdate(); */ @@ -636,9 +636,13 @@ int main( int argc, char *argv[] ) { /* $Log$ -/* Revision 1.48 1998/01/19 18:35:46 curt -/* Minor tweaks and fixes for cygwin32. +/* Revision 1.49 1998/01/19 18:40:31 curt +/* Tons of little changes to clean up the code and to remove fatal errors +/* when building with the c++ compiler. /* + * Revision 1.48 1998/01/19 18:35:46 curt + * Minor tweaks and fixes for cygwin32. + * * Revision 1.47 1998/01/13 00:23:08 curt * Initial changes to support loading and management of scenery tiles. Note, * there's still a fair amount of work left to be done.