1
0
Fork 0

Initialize some variables

This commit is contained in:
Tim Moore 2009-08-24 17:54:48 +02:00
parent c6d4f3b0ff
commit bfe942268e
2 changed files with 2 additions and 2 deletions

View file

@ -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,

View file

@ -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,