From: <fro...@us...> - 2005-07-26 21:29:44
|
Update of /cvsroot/jsbsim/JSBSim In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15794 Modified Files: Tag: HEAD_LEGACY_1 JSBSim.cxx Log Message: Move crash detection out of pre trim initialization path. Index: JSBSim.cxx =================================================================== RCS file: /cvsroot/jsbsim/JSBSim/Attic/JSBSim.cxx,v retrieving revision 1.190 retrieving revision 1.190.2.1 diff -C2 -r1.190 -r1.190.2.1 *** JSBSim.cxx 11 Jun 2005 00:06:38 -0000 1.190 --- JSBSim.cxx 26 Jul 2005 21:29:36 -0000 1.190.2.1 *************** *** 488,491 **** --- 488,497 ---- // autopilot (and the rest of the sim can use the updated values copy_from_JSBsim(); + + // crashed (altitude AGL < 0) + if (get_Altitude_AGL() < 0.0) { + crash_message = "Attempted to fly under ground."; + crash_handler(); + } } *************** *** 818,827 **** spoilers_pos_pct->setDoubleValue( FCS->GetDspPos(ofNorm) ); - // crashed (altitude AGL < 0) - if (get_Altitude_AGL() < 0.0) { - crash_message = "Attempted to fly under ground."; - crash_handler(); - } - return true; } --- 824,827 ---- |