Ref T683, move "m_ownAircraftUpdateCycles" one level up so it can be used in FS9

This commit is contained in:
Klaus Basan
2019-06-13 00:27:05 +02:00
committed by Mat Sutcliffe
parent e1b0375d68
commit fc2f7b4a12
3 changed files with 10 additions and 1 deletions

View File

@@ -68,6 +68,12 @@ namespace BlackSimPlugin
return CSimulatorPluginCommon::parseDetails(parser);
}
void CSimulatorFsCommon::reset()
{
m_ownAircraftUpdateCycles = 0;
ISimulator::reset();
}
void CSimulatorFsCommon::registerHelp()
{
if (CSimpleCommandParser::registered("BlackSimPlugin::FsCommon::CSimulatorFsCommon")) { return; }

View File

@@ -75,10 +75,14 @@ namespace BlackSimPlugin
//! @}
virtual bool parseDetails(const BlackMisc::CSimpleCommandParser &parser) override;
//! \copydoc BlackCore::ISimulator::reset
virtual void reset() override;
//! Register help
static void registerHelp();
CFsuipc *m_fsuipc = nullptr; //!< FSUIPC
int m_ownAircraftUpdateCycles = 0; //!< own aircraft updates, even with 50 updates/sec long enough even for 32bit
bool m_useFsuipc = false; //!< use FSUIPC
bool m_simPaused = false; //!< simulator paused?
bool m_simTimeSynced = false; //!< time synchronized?

View File

@@ -595,7 +595,6 @@ namespace BlackSimPlugin
int m_sbDataReceived = 0; //!< SB3 area data received
int m_syncTimeDeferredCounter = 0; //!< Set when synchronized, used to wait some time
int m_skipCockpitUpdateCycles = 0; //!< skip some update cycles to allow changes in simulator cockpit to be set
int m_ownAircraftUpdateCycles = 0; //!< own aircraft update
// tracing dispatch performance
int m_dispatchErrors = 0; //!< number of dispatched failed, \sa dispatch