From eedf9f9671487ab448b0a9a1f17f87197121935a Mon Sep 17 00:00:00 2001 From: david Date: Sat, 19 Jan 2002 05:32:28 +0000 Subject: [PATCH] Latest JSBSim changes, including some gear tweaking from Jon and some fuel-reporting improvements for piston engines. --- src/FDM/JSBSim/FGConfigFile.cpp | 8 +++- src/FDM/JSBSim/FGEngine.cpp | 53 +++++++++++++++++---------- src/FDM/JSBSim/FGEngine.h | 55 +++++++++++++++------------- src/FDM/JSBSim/FGGroundReactions.cpp | 53 +-------------------------- src/FDM/JSBSim/FGLGear.cpp | 12 +----- src/FDM/JSBSim/FGPiston.cpp | 12 +++++- src/FDM/JSBSim/FGPiston.h | 1 + src/FDM/JSBSim/FGPropulsion.h | 3 ++ src/FDM/JSBSim/FGTank.h | 2 + 9 files changed, 87 insertions(+), 112 deletions(-) diff --git a/src/FDM/JSBSim/FGConfigFile.cpp b/src/FDM/JSBSim/FGConfigFile.cpp index 488ec0b61..9a03a1517 100644 --- a/src/FDM/JSBSim/FGConfigFile.cpp +++ b/src/FDM/JSBSim/FGConfigFile.cpp @@ -88,6 +88,9 @@ string FGConfigFile::GetNextConfigLine(void) comment_length = comment_ends_at + 2 - comment_starts_at + 1; LineComment = CurrentLine.substr(comment_starts_at+4, comment_length-4-3); CurrentLine.erase(comment_starts_at, comment_length); + if (CurrentLine.find_first_not_of(" ") == string::npos) { + CurrentLine.erase(); + } } else if ( start_comment && !end_comment) { //