mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-30 11:55:35 +08:00
Ref T683, move "m_ownAircraftUpdateCycles" one level up so it can be used in FS9
This commit is contained in:
committed by
Mat Sutcliffe
parent
e1b0375d68
commit
fc2f7b4a12
@@ -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; }
|
||||
|
||||
@@ -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?
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user