]> git.mxchange.org Git - flightgear.git/commitdiff
The aircraft model used for external views was being included in the height
authorcurt <curt>
Thu, 13 Jan 2000 20:12:16 +0000 (20:12 +0000)
committercurt <curt>
Thu, 13 Jan 2000 20:12:16 +0000 (20:12 +0000)
above terrain check so when the view position and the aircraft model collided
the current altitude kept getting pushed up to compensate, but of course the
aircraft model would get pushed up as well because it tracks the current
aircraft position and orientation.  Thus you had a never ending cycle ...

src/Main/main.cxx

index a6c2bcaea631a48a36a8bdfd77c64925b0c270f5..5118ce04d40c461958f27943c5f5558aa5667684 100644 (file)
@@ -767,7 +767,7 @@ static void fgMainLoop( void ) {
        if ( cur_fdm_state->get_Altitude() * FEET_TO_METER < 
             (scenery.cur_elev + alt_adjust_m - 3.0) ) {
            // now set aircraft altitude above ground
-           printf("Current Altitude = %.2f < %.2f forcing to %.2f\n", 
+           printf("(*) Current Altitude = %.2f < %.2f forcing to %.2f\n", 
                   cur_fdm_state->get_Altitude() * FEET_TO_METER,
                   scenery.cur_elev + alt_adjust_m - 3.0,
                   scenery.cur_elev + alt_adjust_m );
@@ -1309,11 +1309,11 @@ int main( int argc, char **argv ) {
 
     ssgEntity *tux_obj = ssgLoadAC( "glider.ac" );
     // ssgEntity *tux_obj = ssgLoadAC( "Tower1x.ac" );
-    tux_obj->clrTraversalMaskBits( SSGTRAV_HOT );
     penguin_pos->addKid( tux_obj );
     penguin_sel->addKid( penguin_pos );
     ssgFlatten( tux_obj );
     ssgStripify( penguin_sel );
+    penguin_sel->clrTraversalMaskBits( SSGTRAV_HOT );
 
 #ifdef FG_NETWORK_OLK
     // Do the network intialization