Merge branch 'maint' into next
This commit is contained in:
commit
0c5e9f46e7
3 changed files with 18 additions and 13 deletions
|
@ -20,18 +20,18 @@
|
|||
|
||||
[Setup]
|
||||
AppName=FlightGear
|
||||
OutputBaseFilename=fgsetup-1.9.0
|
||||
AppVerName=FlightGear v1.9.0
|
||||
OutputBaseFilename=fgsetup-1.9.1
|
||||
AppVerName=FlightGear v1.9.1
|
||||
AppPublisher=The FlightGear Organization
|
||||
AppPublisherURL=http://www.flightgear.org
|
||||
AppSupportURL=http://www.flightgear.org
|
||||
AppUpdatesURL=http://www.flightgear.org
|
||||
DefaultDirName={pf}\FlightGear
|
||||
DefaultGroupName=FlightGear v1.9.0
|
||||
DefaultGroupName=FlightGear v1.9.1
|
||||
LicenseFile=X:\data\COPYING
|
||||
Uninstallable=yes
|
||||
SetupIconFile=x:\flightgear.ico
|
||||
VersionInfoVersion=1.9.0.0
|
||||
VersionInfoVersion=1.9.1.0
|
||||
WizardImageFile=X:\setupimg.bmp
|
||||
WizardSmallImageFile=X:\setupsmall.bmp
|
||||
|
||||
|
@ -53,7 +53,7 @@ Name: "{group}\FlightGear Launcher"; Filename: "{app}\bin\Win32\fgrun.exe"; Work
|
|||
Name: "{group}\FlightGear Manual"; Filename: "{app}\data\Docs\getstart.pdf"
|
||||
Name: "{group}\FlightGear Documentation"; Filename: "{app}\data\Docs\index.html"
|
||||
Name: "{group}\Flightgear Wiki"; Filename: "http://wiki.flightgear.org"
|
||||
Name: "{userdesktop}\FlightGear v1.9.0"; Filename: "{app}\bin\Win32\fgrun.exe"; WorkingDir: "{app}"; Tasks: desktopicon
|
||||
Name: "{userdesktop}\FlightGear v1.9.1"; Filename: "{app}\bin\Win32\fgrun.exe"; WorkingDir: "{app}"; Tasks: desktopicon
|
||||
|
||||
Name: "{group}\Tools\Install & Uninstall Scenery"; Filename: "{app}\bin\Win32\fgadmin.exe"; WorkingDir: "{app}";
|
||||
Name: "{group}\Tools\TerraSync"; Filename: "{app}\bin\Win32\terrasync.exe"; Parameters: "-S -p 5505 -d ""{app}\terrasync"""; WorkingDir: "{app}";
|
||||
|
@ -69,7 +69,7 @@ Name: "{group}\Tools\yasim"; Filename: "cmd"; Parameters: "/k ""{app}\bin\Win32\
|
|||
Name: "{group}\Tools\Explore Documentation Folder"; Filename: "{app}\data\Docs"
|
||||
|
||||
; For running flightgear directly
|
||||
; Name: "{userdesktop}\FlightGear v1.9.0"; Filename: "{app}\bin\Win32\fgfs.exe"; Parameters: "--fg-root=."; WorkingDir: "{app}"; Tasks: desktopicon
|
||||
; Name: "{userdesktop}\FlightGear v1.9.1"; Filename: "{app}\bin\Win32\fgfs.exe"; Parameters: "--fg-root=."; WorkingDir: "{app}"; Tasks: desktopicon
|
||||
|
||||
[Run]
|
||||
; Put installation directory into the fgrun.prefs
|
||||
|
|
|
@ -438,6 +438,9 @@ FGMetarEnvironmentCtrl::update_env_config ()
|
|||
// factor by the maximum wind change.
|
||||
double x = fabs(current[0] - metar[0]);
|
||||
double y = fabs(current[1] - metar[1]);
|
||||
|
||||
// only interpolate if we have a difference
|
||||
if (x + y > 0) {
|
||||
double dx = x / (x + y);
|
||||
double dy = 1 - dx;
|
||||
|
||||
|
@ -447,6 +450,7 @@ FGMetarEnvironmentCtrl::update_env_config ()
|
|||
// Interpolate each component separately.
|
||||
current[0] = interpolate_val(current[0], metar[0], maxdx);
|
||||
current[1] = interpolate_val(current[1], metar[1], maxdy);
|
||||
}
|
||||
|
||||
// Now convert back to polar coordinates.
|
||||
if ((current[0] == 0.0) && (current[1] == 0.0)) {
|
||||
|
|
|
@ -47,6 +47,7 @@ Altimeter::init ()
|
|||
|
||||
SGPropertyNode *node = fgGetNode(branch.c_str(), _num, true );
|
||||
raw_PA = 0.0;
|
||||
_kollsman = 0.0;
|
||||
_pressure_node = fgGetNode(_static_pressure.c_str(), true);
|
||||
_serviceable_node = node->getChild("serviceable", 0, true);
|
||||
_setting_node = node->getChild("setting-inhg", 0, true);
|
||||
|
|
Loading…
Reference in a new issue