mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 06:35:52 +08:00
[Weather] Only send weather if activated
This commit is contained in:
committed by
Mat Sutcliffe
parent
bba07ef4c4
commit
1fb97755ce
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user