X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FNetwork%2FATC-Main.cxx;h=6c0da9bd96f400b86c3973ae3f9eb51780de72f8;hb=b0dcb657e77579ecc79798ff365737095f96f9e2;hp=b70b4abf36eb584ce1d6ffd726a8d093000c1f64;hpb=992b7ca8f4e58494b0bbc5ef7e228c65879ba0e8;p=flightgear.git diff --git a/src/Network/ATC-Main.cxx b/src/Network/ATC-Main.cxx index b70b4abf3..6c0da9bd9 100644 --- a/src/Network/ATC-Main.cxx +++ b/src/Network/ATC-Main.cxx @@ -31,6 +31,8 @@ #include #include #include +#include + #include //snprintf #ifdef _WIN32 # include //lseek, read, write @@ -38,14 +40,13 @@ #include -#include - #include #include #include #include #include #include +#include #include #include
@@ -54,7 +55,9 @@ #include "ATC-Main.hxx" using std::string; - +using std::cout; +using std::endl; +using std::vector; // Lock the ATC hardware static int fgATCMainLock( int fd ) { @@ -96,7 +99,7 @@ void FGATCMain::init_config() { SGPath atcsim_config( envp ); atcsim_config.append( ".fgfs-atc610x.xml" ); try { - SG_LOG(SG_GENERAL, SG_ALERT, + SG_LOG(SG_NETWORK, SG_ALERT, "Warning: loading deprecated config file: " << atcsim_config.str() ); readProperties( atcsim_config.str(), globals->get_props() ); @@ -222,7 +225,7 @@ bool FGATCMain::process() { FGNasalSys *n = (FGNasalSys*)globals->get_subsystem("nasal"); bool result = n->parseAndRun( "atcsim.update()" ); if ( !result ) { - SG_LOG( SG_GENERAL, SG_ALERT, "Nasal: atcsim.update() failed!" ); + SG_LOG( SG_NETWORK, SG_ALERT, "Nasal: atcsim.update() failed!" ); } // process the ATC outputs