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
parent 8f91d2a101
commit 85eae8c8cb
3 changed files with 10 additions and 1 deletions

View File

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

View File

@@ -75,10 +75,14 @@ namespace BlackSimPlugin
//! @} //! @}
virtual bool parseDetails(const BlackMisc::CSimpleCommandParser &parser) override; virtual bool parseDetails(const BlackMisc::CSimpleCommandParser &parser) override;
//! \copydoc BlackCore::ISimulator::reset
virtual void reset() override;
//! Register help //! Register help
static void registerHelp(); static void registerHelp();
CFsuipc *m_fsuipc = nullptr; //!< FSUIPC 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_useFsuipc = false; //!< use FSUIPC
bool m_simPaused = false; //!< simulator paused? bool m_simPaused = false; //!< simulator paused?
bool m_simTimeSynced = false; //!< time synchronized? bool m_simTimeSynced = false; //!< time synchronized?

View File

@@ -595,7 +595,6 @@ namespace BlackSimPlugin
int m_sbDataReceived = 0; //!< SB3 area data received int m_sbDataReceived = 0; //!< SB3 area data received
int m_syncTimeDeferredCounter = 0; //!< Set when synchronized, used to wait some time 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_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 // tracing dispatch performance
int m_dispatchErrors = 0; //!< number of dispatched failed, \sa dispatch int m_dispatchErrors = 0; //!< number of dispatched failed, \sa dispatch