mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-26 02:35:38 +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()
|
void CSimulatorFs9::ps_reloadSettings()
|
||||||
{
|
{
|
||||||
auto selectedWeatherScenario = m_weatherScenarioSettings.get();
|
auto selectedWeatherScenario = m_weatherScenarioSettings.get();
|
||||||
if (CWeatherScenario::isRealWeatherScenario(selectedWeatherScenario))
|
if (!CWeatherScenario::isRealWeatherScenario(selectedWeatherScenario))
|
||||||
{
|
{
|
||||||
m_lastWeatherPosition = {};
|
m_lastWeatherPosition = {};
|
||||||
injectWeatherGrid(CWeatherGrid::getByScenario(selectedWeatherScenario));
|
injectWeatherGrid(CWeatherGrid::getByScenario(selectedWeatherScenario));
|
||||||
|
|||||||
@@ -521,7 +521,7 @@ namespace BlackSimPlugin
|
|||||||
void CSimulatorFsx::ps_reloadSettings()
|
void CSimulatorFsx::ps_reloadSettings()
|
||||||
{
|
{
|
||||||
auto selectedWeatherScenario = m_weatherScenarioSettings.get();
|
auto selectedWeatherScenario = m_weatherScenarioSettings.get();
|
||||||
if (CWeatherScenario::isRealWeatherScenario(selectedWeatherScenario))
|
if (!CWeatherScenario::isRealWeatherScenario(selectedWeatherScenario))
|
||||||
{
|
{
|
||||||
m_lastWeatherPosition = {};
|
m_lastWeatherPosition = {};
|
||||||
injectWeatherGrid(CWeatherGrid::getByScenario(selectedWeatherScenario));
|
injectWeatherGrid(CWeatherGrid::getByScenario(selectedWeatherScenario));
|
||||||
|
|||||||
@@ -234,7 +234,7 @@ namespace BlackSimPlugin
|
|||||||
void CSimulatorXPlane::ps_reloadSettings()
|
void CSimulatorXPlane::ps_reloadSettings()
|
||||||
{
|
{
|
||||||
auto selectedWeatherScenario = m_weatherScenarioSettings.get();
|
auto selectedWeatherScenario = m_weatherScenarioSettings.get();
|
||||||
if (CWeatherScenario::isRealWeatherScenario(selectedWeatherScenario))
|
if (!CWeatherScenario::isRealWeatherScenario(selectedWeatherScenario))
|
||||||
{
|
{
|
||||||
m_lastWeatherPosition = {};
|
m_lastWeatherPosition = {};
|
||||||
injectWeatherGrid(CWeatherGrid::getByScenario(selectedWeatherScenario));
|
injectWeatherGrid(CWeatherGrid::getByScenario(selectedWeatherScenario));
|
||||||
|
|||||||
Reference in New Issue
Block a user