Oops for specified magvars, I had the sign backwards.
This commit is contained in:
parent
2827cf1387
commit
fcce1d782c
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue