#ifdef FGFS
#include <simgear/compiler.h>
#include STL_IOSTREAM
-# ifdef SG_HAVE_STD_INCLUDES
-# include <ctime>
-# else
-# include <time.h>
-# endif
#else
# if defined(sgi) && !defined(__GNUC__)
# include <iostream.h>
-# include <time.h>
# else
# include <iostream>
-# include <ctime>
# endif
#endif
}
} else { // form jsbsim <acname> <resetfile>
if ( ! FDMExec->LoadModel("aircraft", "engine", string(argv[1]))) {
- cerr << "JSBSim could not be started" << endl;
+ cerr << " JSBSim could not be started" << endl << endl;
exit(-1);
}
}
}
- struct FGJSBBase::Message* msg;
+//
+// RUN loop. MESSAGES are read inside the Run() loop and output as necessary.
+//
+
+ FGJSBBase::Message* msg;
while (FDMExec->Run()) {
while (FDMExec->ReadMessage()) {
msg = FDMExec->ProcessMessage();