]> git.mxchange.org Git - flightgear.git/blobdiff - src/Network/nmea.cxx
Moved random ground cover object management code (userdata.[ch]xx) over
[flightgear.git] / src / Network / nmea.cxx
index d33578a4a8ae0e0d8887d19cece78474637d9306..577e694cc0f7a2ea86f66f8cb939d5e302c257f9 100644 (file)
 #include <simgear/debug/logstream.hxx>
 #include <simgear/math/sg_geodesy.hxx>
 #include <simgear/io/iochannel.hxx>
+#include <simgear/timing/sg_time.hxx>
 
 #include <FDM/flight.hxx>
 #include <Main/globals.hxx>
 
 #include "nmea.hxx"
 
+SG_USING_NAMESPACE(std);
+
 
 FGNMEA::FGNMEA() {
 }
@@ -427,7 +430,7 @@ bool FGNMEA::parse_message() {
            string alt_units = msg.substr(begin, end - begin);
            begin = end + 1;
 
-           if ( alt_units != "F" ) {
+           if ( alt_units != (string)"F" ) {
                altitude *= SG_METER_TO_FEET;
            }