1
0
Fork 0

Fix a couple oversights in the runway light lifting formula.

This commit is contained in:
curt 2002-10-30 22:56:22 +00:00
parent 94a36038d2
commit eb0c92f8ff

View file

@ -895,14 +895,14 @@ void FGTileEntry::prep_ssg_node( const Point3D& p, sgVec3 up, float vis) {
agl = globals->get_current_view()->getAltitudeASL_ft()
* SG_FEET_TO_METER - globals->get_scenery()->get_cur_elev()
- 30.0;
if ( agl < 30.0 ) {
if ( agl < 0.0 ) {
agl = 0.0;
}
if ( general.get_glDepthBits() > 16 ) {
sgScaleVec3( lift_vec, 0.0 + agl / 500.0 );
} else {
sgScaleVec3( lift_vec, 1.0 + agl / 20.0 );
sgScaleVec3( lift_vec, 0.0 + agl / 20.0 );
}
sgVec3 lt_trans;