Also use SBRJ as fallback.
Sigh. No real good idea how to /not/ hardcode this.
This commit is contained in:
parent
a0b4f20cfe
commit
1947c100d9
1 changed files with 2 additions and 2 deletions
|
@ -652,8 +652,8 @@ bool initPosition()
|
||||||
|
|
||||||
if ( !set_pos ) {
|
if ( !set_pos ) {
|
||||||
// No lon/lat specified, no airport specified, use the default airport
|
// No lon/lat specified, no airport specified, use the default airport
|
||||||
// TODO: don't hardcode this
|
// TODO: don't hardcode this. Really.
|
||||||
const FGAirport* airport = fgFindAirportID("LEBL");
|
const FGAirport* airport = fgFindAirportID("SBRJ");
|
||||||
if( airport ) {
|
if( airport ) {
|
||||||
const SGGeod & airportGeod = airport->geod();
|
const SGGeod & airportGeod = airport->geod();
|
||||||
fgSetDouble("/sim/presets/longitude-deg", airportGeod.getLongitudeDeg());
|
fgSetDouble("/sim/presets/longitude-deg", airportGeod.getLongitudeDeg());
|
||||||
|
|
Loading…
Add table
Reference in a new issue