Initialize some variables
This commit is contained in:
parent
c6d4f3b0ff
commit
bfe942268e
2 changed files with 2 additions and 2 deletions
|
@ -85,7 +85,7 @@ void FGMagicCarpet::update( double dt ) {
|
|||
_set_Euler_Rates(0,0,0);
|
||||
|
||||
// update (lon/lat) position
|
||||
double lat2, lon2, az2;
|
||||
double lat2 = 0.0, lon2 = 0.0, az2 = 0.0;
|
||||
if ( fabs( speed ) > SG_EPSILON ) {
|
||||
geo_direct_wgs_84 ( get_Altitude(),
|
||||
get_Latitude() * SGD_RADIANS_TO_DEGREES,
|
||||
|
|
|
@ -154,7 +154,7 @@ void FGUFO::update( double dt ) {
|
|||
double yaw = fabs(rudder) < .2 ? 0.0 : rudder / (25 + fabs(speed) * .1);
|
||||
|
||||
// update (lon/lat) position
|
||||
double lat2, lon2, az2;
|
||||
double lat2 = 0.0, lon2 = 0.0, az2 = 0.0;
|
||||
if ( fabs(speed) > SG_EPSILON ) {
|
||||
geo_direct_wgs_84 ( get_Altitude(),
|
||||
get_Latitude() * SGD_RADIANS_TO_DEGREES,
|
||||
|
|
Loading…
Reference in a new issue