mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 13:36:48 +08:00
Fix injection of static weather scenarios
This commit is contained in:
committed by
Mathew Sutcliffe
parent
227262c2cc
commit
82324d3246
@@ -358,7 +358,7 @@ namespace BlackSimPlugin
|
||||
void CSimulatorFs9::ps_reloadSettings()
|
||||
{
|
||||
auto selectedWeatherScenario = m_weatherScenarioSettings.get();
|
||||
if (CWeatherScenario::isRealWeatherScenario(selectedWeatherScenario))
|
||||
if (!CWeatherScenario::isRealWeatherScenario(selectedWeatherScenario))
|
||||
{
|
||||
m_lastWeatherPosition = {};
|
||||
injectWeatherGrid(CWeatherGrid::getByScenario(selectedWeatherScenario));
|
||||
|
||||
@@ -521,7 +521,7 @@ namespace BlackSimPlugin
|
||||
void CSimulatorFsx::ps_reloadSettings()
|
||||
{
|
||||
auto selectedWeatherScenario = m_weatherScenarioSettings.get();
|
||||
if (CWeatherScenario::isRealWeatherScenario(selectedWeatherScenario))
|
||||
if (!CWeatherScenario::isRealWeatherScenario(selectedWeatherScenario))
|
||||
{
|
||||
m_lastWeatherPosition = {};
|
||||
injectWeatherGrid(CWeatherGrid::getByScenario(selectedWeatherScenario));
|
||||
|
||||
@@ -234,7 +234,7 @@ namespace BlackSimPlugin
|
||||
void CSimulatorXPlane::ps_reloadSettings()
|
||||
{
|
||||
auto selectedWeatherScenario = m_weatherScenarioSettings.get();
|
||||
if (CWeatherScenario::isRealWeatherScenario(selectedWeatherScenario))
|
||||
if (!CWeatherScenario::isRealWeatherScenario(selectedWeatherScenario))
|
||||
{
|
||||
m_lastWeatherPosition = {};
|
||||
injectWeatherGrid(CWeatherGrid::getByScenario(selectedWeatherScenario));
|
||||
|
||||
Reference in New Issue
Block a user