From f023440a5fc04b64818d8153edfa54a97bdefa2f Mon Sep 17 00:00:00 2001 From: curt Date: Mon, 29 Jan 2001 04:47:16 +0000 Subject: [PATCH] Bug fix/typo fix submitted by Tony. --- src/FDM/JSBSim.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/FDM/JSBSim.cxx b/src/FDM/JSBSim.cxx index 39af887e4..7707afe48 100644 --- a/src/FDM/JSBSim.cxx +++ b/src/FDM/JSBSim.cxx @@ -61,8 +61,6 @@ FGJSBsim::FGJSBsim( double dt ) { bool result; - runcount=0; - fdmex=new FGFDMExec; fgic=new FGInitialCondition(fdmex); needTrim=true; @@ -117,7 +115,6 @@ void FGJSBsim::init() { result = fdmex->LoadModel( aircraft_path.str(), engine_path.str(), fgGetString("/sim/aircraft") ); -#endif if (result) { FG_LOG( FG_FLIGHT, FG_INFO, " loaded aircraft " << fgGetString("/sim/aircraft") ); @@ -127,7 +124,8 @@ void FGJSBsim::init() { << " does not exist" ); exit(-1); } - +#endif + fdmex->GetAtmosphere()->UseInternal(); FG_LOG( FG_FLIGHT, FG_INFO, " Initializing JSBSim with:" ); -- 2.39.5