Ref T709, changed to "static" settings as it needs to be used in static functions such as "CTraffic::preferences"

This commit is contained in:
Klaus Basan
2019-07-27 02:28:02 +02:00
committed by Mat Sutcliffe
parent f2f9ee8818
commit 1440c4d2e9
8 changed files with 50 additions and 32 deletions

View File

@@ -37,7 +37,7 @@ namespace XSwiftBus
{
public:
//! Constructor
CTraffic(CSettings &settings);
CTraffic(CSettings *staticSettings);
//! Destructor
~CTraffic() override;
@@ -144,10 +144,11 @@ namespace XSwiftBus
bool isInitialized = false;
};
static CSettings *s_pluginSettings; //!< needs to be static for static functions
bool m_initialized = false;
bool m_enabledMultiplayer = false;
CTerrainProbe m_terrainProbe;
CSettings &m_pluginSettings;
void emitSimFrame();
void emitPlaneAdded(const std::string &callsign);