Initial units confusion fixes.
This commit is contained in:
parent
20fb555364
commit
16b21865b8
1 changed files with 4 additions and 4 deletions
|
@ -425,10 +425,10 @@ bool fgInitPosition( void ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// if requested altitude is below ground level
|
// if requested altitude is below ground level
|
||||||
if ( scenery.cur_elev >
|
if ( fgGetDouble( "/position/altitude" ) < (scenery.cur_elev + 1)
|
||||||
fgGetDouble("/position/altitude") * METERS_TO_FEET - 1) {
|
* METERS_TO_FEET ) {
|
||||||
fgSetDouble("/position/altitude",
|
fgSetDouble( "/position/altitude",
|
||||||
(scenery.cur_elev + 1) * METERS_TO_FEET );
|
(scenery.cur_elev + 1) * METERS_TO_FEET );
|
||||||
}
|
}
|
||||||
|
|
||||||
SG_LOG( SG_GENERAL, SG_INFO,
|
SG_LOG( SG_GENERAL, SG_INFO,
|
||||||
|
|
Loading…
Reference in a new issue