1
0
Fork 0

Oops for specified magvars, I had the sign backwards.

This commit is contained in:
curt 2001-02-02 17:44:16 +00:00
parent 2827cf1387
commit fcce1d782c

View file

@ -143,8 +143,8 @@ operator >> ( istream& in, FGNav& n )
int var;
sscanf(magvar_s.c_str(), "%d%c", &var, &direction);
n.magvar = var;
if (direction == 'E')
n.magvar = 0 - n.magvar;
if (direction == 'W')
n.magvar = -n.magvar;
// cout << "Explicit magvar of " << n.magvar << endl;
}
// cout << n.ident << " " << n.magvar << endl;