]> git.mxchange.org Git - flightgear.git/commitdiff
Fixes by Charlie Hotchkiss.
authorcurt <curt>
Tue, 8 Sep 1998 21:40:08 +0000 (21:40 +0000)
committercurt <curt>
Tue, 8 Sep 1998 21:40:08 +0000 (21:40 +0000)
Main/fg_init.cxx
Main/options.hxx

index 55e58587fff35e284a936c78294528bec42a8c23..ec3dea84eb9e608eb05143ec72ce028e54a079b7 100644 (file)
@@ -37,7 +37,6 @@
 #  define _G_NO_EXTERN_TEMPLATES
 #endif
 
-#include <string.h>
 #include <string>
 
 #include <Include/fg_constants.h>
@@ -113,7 +112,7 @@ int fgInitPosition( void ) {
     FG_Altitude = current_options.get_altitude() * METER_TO_FEET;
     FG_Runway_altitude = FG_Altitude - 3.758099;
 
-    fgPrintf( FG_GENERAL, FG_INFO, 
+    fgPrintf( FG_GENERAL, FG_INFO,
              "Initial position is: (%.4f, %.4f, %.2f)\n", 
              FG_Longitude * RAD_TO_DEG, FG_Latitude * RAD_TO_DEG, 
              FG_Altitude * FEET_TO_METER);
@@ -138,7 +137,7 @@ int fgInitGeneral( void ) {
     g->glVersion = (char *)glGetString ( GL_VERSION );
 
     root = current_options.get_fg_root();
-    if ( ! root.length() ) { 
+    if ( ! root.length() ) {
        // No root path set? Then bail ...
        fgPrintf( FG_GENERAL, FG_EXIT, "%s %s\n",
                  "Cannot continue without environment variable FG_ROOT",
@@ -186,7 +185,8 @@ fgPoint3d geod_to_cart(double geod[3]) {
 // initialization routines.  If you are adding a subsystem to flight
 // gear, its initialization call should located in this routine.
 // Returns non-zero if a problem encountered.
-int fgInitSubsystems( void ) {
+int fgInitSubsystems( void )
+{
     fgFLIGHT *f;
     fgLIGHT *l;
     fgTIME *t;
@@ -392,6 +392,9 @@ int fgInitSubsystems( void ) {
 
 
 // $Log$
+// Revision 1.36  1998/09/08 21:40:08  curt
+// Fixes by Charlie Hotchkiss.
+//
 // Revision 1.35  1998/08/29 13:09:26  curt
 // Changes to event manager from Bernie Bright.
 //
index c5afe1a0f332d57073c5526726c7db10e674a01b..76dc264943b6ced2d86d074e398e7f42d6647d4f 100644 (file)
 #define _OPTIONS_HXX
 
 
-#ifndef __cplusplus                                                          
+#ifndef __cplusplus
 # error This library requires C++
 #endif                                   
 
+#ifdef HAVE_CONFIG_H
+#  include <config.h>
+#endif
+
 #include <string>
-#include <string.h>
+
+#ifdef NEEDNAMESPACESTD
+using namespace std;
+#endif
 
 class fgOPTIONS {
 public:
@@ -50,8 +57,8 @@ public:
        FG_FOG_NICEST   = 2
     };
 
-    const int FG_RADIUS_MIN = 1;
-    const int FG_RADIUS_MAX = 4;
+    static const int FG_RADIUS_MIN = 1;
+    static const int FG_RADIUS_MAX = 4;
 
 private:
 
@@ -175,6 +182,9 @@ extern fgOPTIONS current_options;
 
 
 // $Log$
+// Revision 1.17  1998/09/08 21:40:10  curt
+// Fixes by Charlie Hotchkiss.
+//
 // Revision 1.16  1998/08/27 17:02:08  curt
 // Contributions from Bernie Bright <bbright@c031.aone.net.au>
 // - use strings for fg_root and airport_id and added methods to return