From 16b21865b811bc716660aaabc0c9a8a3962e1f00 Mon Sep 17 00:00:00 2001 From: curt Date: Mon, 2 Apr 2001 03:39:43 +0000 Subject: [PATCH] Initial units confusion fixes. --- src/Main/fg_init.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Main/fg_init.cxx b/src/Main/fg_init.cxx index 6b0a02b94..599469dab 100644 --- a/src/Main/fg_init.cxx +++ b/src/Main/fg_init.cxx @@ -425,10 +425,10 @@ bool fgInitPosition( void ) { } // if requested altitude is below ground level - if ( scenery.cur_elev > - fgGetDouble("/position/altitude") * METERS_TO_FEET - 1) { - fgSetDouble("/position/altitude", - (scenery.cur_elev + 1) * METERS_TO_FEET ); + if ( fgGetDouble( "/position/altitude" ) < (scenery.cur_elev + 1) + * METERS_TO_FEET ) { + fgSetDouble( "/position/altitude", + (scenery.cur_elev + 1) * METERS_TO_FEET ); } SG_LOG( SG_GENERAL, SG_INFO,