]> git.mxchange.org Git - flightgear.git/blobdiff - src/Main/util.cxx
Fix the nmea and garmin output to a) fake a GSA sentence, b) fix a y2k bug
[flightgear.git] / src / Main / util.cxx
index c6ab0aa5c04a63163c6df123071a2834ce9cbb9d..308ac756ab645cae078edfb6ed8fefb2df906e0d 100644 (file)
@@ -32,25 +32,23 @@ SG_USING_STD(vector);
 #include "globals.hxx"
 #include "util.hxx"
 
-#if defined(FG_NETWORK_OLK)
-#include <NetworkOLK/network.h>
-#endif
-
 
 void
 fgDefaultWeatherValue (const char * propname, double value)
 {
-    int i;
+    unsigned int i;
 
     SGPropertyNode * branch = fgGetNode("/environment/config/boundary", true);
     vector<SGPropertyNode_ptr> entries = branch->getChildren("entry");
-    for (i = 0; i < entries.size(); i++)
+    for (i = 0; i < entries.size(); i++) {
         entries[i]->setDoubleValue(propname, value);
+    }
 
     branch = fgGetNode("/environment/config/aloft", true);
     entries = branch->getChildren("entry");
-    for (i = 0; i < entries.size(); i++)
+    for (i = 0; i < entries.size(); i++) {
         entries[i]->setDoubleValue(propname, value);
+    }
 }
 
 
@@ -59,11 +57,6 @@ fgExit (int status)
 {
     SG_LOG(SG_GENERAL, SG_INFO, "Exiting FlightGear with status " << status);
 
-#if defined(FG_NETWORK_OLK)
-    if (fgGetBool("/sim/networking/network-olk"))
-       fgd_send_com("8", FGFS_host);
-#endif
-
     globals->get_io()->shutdown_all();
     exit(status);
 }