mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 21:56:43 +08:00
Minor tweaks, style
This commit is contained in:
@@ -96,7 +96,6 @@ namespace BlackSimPlugin
|
||||
this->initDataDefinitionsWhenConnected();
|
||||
m_timerId = this->startTimer(DispatchIntervalMs);
|
||||
// do not start m_addPendingAircraftTimer here, it will be started when object was added
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -411,7 +410,7 @@ namespace BlackSimPlugin
|
||||
void CSimulatorFsxCommon::onSimStopped()
|
||||
{
|
||||
// stopping events in FSX: Load menu, weather and season
|
||||
CLogMessage(this).info("Simulator stopped: %1") << this->m_simulatorDetails;
|
||||
CLogMessage(this).info("Simulator stopped: %1") << m_simulatorDetails;
|
||||
const SimulatorStatus oldStatus = this->getSimulatorStatus();
|
||||
m_simSimulating = false;
|
||||
m_simulatingChangedTs = QDateTime::currentMSecsSinceEpoch();
|
||||
@@ -432,7 +431,7 @@ namespace BlackSimPlugin
|
||||
|
||||
void CSimulatorFsxCommon::onSimExit()
|
||||
{
|
||||
CLogMessage(this).info("Simulator exit: %1") << this->m_simulatorDetails;
|
||||
CLogMessage(this).info("Simulator exit: %1") << m_simulatorDetails;
|
||||
|
||||
// reset complete state, we are going down
|
||||
m_simulatingChangedTs = QDateTime::currentMSecsSinceEpoch();
|
||||
@@ -1725,7 +1724,7 @@ namespace BlackSimPlugin
|
||||
if (!simObject.hasValidRequestAndObjectId()) { return false; }
|
||||
if (!m_hSimConnect) { return false; }
|
||||
|
||||
// always request, not only when something has changed
|
||||
// stop by setting SIMCONNECT_PERIOD_NEVER
|
||||
HRESULT result = SimConnect_RequestDataOnSimObject(
|
||||
m_hSimConnect, simObject.getRequestId() + RequestSimDataOffset,
|
||||
CSimConnectDefinitions::DataRemoteAircraftGetPosition,
|
||||
|
||||
Reference in New Issue
Block a user