]> git.mxchange.org Git - flightgear.git/blobdiff - src/Network/native_gui.cxx
Fix a couple of 64-bit warnings identified by GCC.
[flightgear.git] / src / Network / native_gui.cxx
index 6ddb8349612fbd0d6929a2fa5cd85bbc05781e73..e78ac47ffc79e64de9990eecd3d006cefafd030f 100644 (file)
@@ -20,6 +20,7 @@
 //
 // $Id$
 
+// TODO FIXME Module still contains lots of "static SGPropertyNode"s below.
 
 #ifdef HAVE_CONFIG_H
 #  include <config.h>
@@ -30,7 +31,6 @@
 #include <simgear/io/iochannel.hxx>
 #include <simgear/timing/sg_time.hxx>
 
-#include <Time/tmp.hxx>
 #include <Main/fg_props.hxx>
 #include <Main/globals.hxx>
 #include <Scenery/scenery.hxx>
@@ -315,7 +315,7 @@ void FGNetGUI2Props( FGNetGUI *net ) {
         // Approach
         fgSetDouble( "/instrumentation/nav[0]/frequencies/selected-mhz",
                      net->tuned_freq );
-        fgSetBool( "/instrumentation/nav[0]/in-range", net->in_range );
+        fgSetBool( "/instrumentation/nav[0]/in-range", net->in_range > 0);
         fgSetDouble( "/instrumentation/dme/indicated-distance-nm", net->dist_nm );
         fgSetDouble( "/instrumentation/nav[0]/heading-needle-deflection",
                      net->course_deviation_deg );