[Weather] Only send weather if activated

This commit is contained in:
Klaus Basan
2020-04-29 22:32:08 +02:00
committed by Mat Sutcliffe
parent bba07ef4c4
commit 1fb97755ce
2 changed files with 10 additions and 4 deletions

View File

@@ -898,7 +898,8 @@ namespace BlackSimPlugin
void CSimulatorXPlane::injectWeatherGrid(const CWeatherGrid &weatherGrid)
{
if (this->isShuttingDownOrDisconnected()) { return; }
if (weatherGrid.isEmpty()) { return; }
if (weatherGrid.isEmpty()) { return; }
if (!this->isWeatherActivated()) { return; }
if (!CThreadUtils::isCurrentThreadObjectThread(this))
{