From 5d6952031d3bdae6a71730cb5a5cf7961f42123f Mon Sep 17 00:00:00 2001 From: Klaus Basan Date: Tue, 29 May 2018 18:02:59 +0200 Subject: [PATCH] Formatting --- src/blackcore/application.h | 8 ++++---- src/plugins/simulator/fsxcommon/simulatorfsxcommon.h | 5 +++-- .../simulator/fsxcommon/simulatorfsxsimconnectproc.cpp | 8 ++++---- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/src/blackcore/application.h b/src/blackcore/application.h index 949d409c4..1096fb7be 100644 --- a/src/blackcore/application.h +++ b/src/blackcore/application.h @@ -28,13 +28,13 @@ #include #include #include -#include #include -#include #include -#include -#include #include +#include +#include +#include +#include #include #include diff --git a/src/plugins/simulator/fsxcommon/simulatorfsxcommon.h b/src/plugins/simulator/fsxcommon/simulatorfsxcommon.h index d35caba41..6e21bf62b 100644 --- a/src/plugins/simulator/fsxcommon/simulatorfsxcommon.h +++ b/src/plugins/simulator/fsxcommon/simulatorfsxcommon.h @@ -268,13 +268,14 @@ namespace BlackSimPlugin HRESULT initDataDefinitionsWhenConnected(); //! Update remote aircraft - //! \remark this is where the interpolated data are set + //! \remark this is where the interpolated data are send void updateRemoteAircraft(); //! Update remote aircraft parts (send to FSX) bool updateRemoteAircraftParts(const CSimConnectObject &simObject, const BlackMisc::Simulation::CInterpolationResult &result); //! Send parts to simulator + //! \remark does not send if there is no change bool sendRemoteAircraftPartsToSimulator(const CSimConnectObject &simObject, DataDefinitionRemoteAircraftPartsWithoutLights &ddRemoteAircraftParts, const BlackMisc::Aviation::CAircraftLights &lights); //! Send lights to simulator (those which have to be toggled) @@ -390,7 +391,7 @@ namespace BlackSimPlugin bool m_simConnected = false; //!< Is simulator connected? bool m_simSimulating = false; //!< Simulator running? bool m_useSbOffsets = true; //!< with SB offsets - bool m_traceSendId = false; //!< trace the send ids, meant for dedugging + bool m_traceSendId = false; //!< trace the send ids, meant for debugging qint64 m_simulatingChangedTs = -1; //!< timestamp, when simulating changed (used to avoid jitter) int m_syncDeferredCounter = 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 diff --git a/src/plugins/simulator/fsxcommon/simulatorfsxsimconnectproc.cpp b/src/plugins/simulator/fsxcommon/simulatorfsxsimconnectproc.cpp index f9150be66..083bf3874 100644 --- a/src/plugins/simulator/fsxcommon/simulatorfsxsimconnectproc.cpp +++ b/src/plugins/simulator/fsxcommon/simulatorfsxsimconnectproc.cpp @@ -294,7 +294,7 @@ namespace BlackSimPlugin } break; } - break; + break; // SIMCONNECT_RECV_ID_SIMOBJECT_DATA } case SIMCONNECT_RECV_ID_AIRPORT_LIST: { @@ -322,7 +322,7 @@ namespace BlackSimPlugin simulatorFsxP3D->m_airportsInRangeFromSimulator.sortByDistanceToOwnAircraft(); simulatorFsxP3D->m_airportsInRangeFromSimulator.truncate(simulatorFsxP3D->maxAirportsInRange()); } - break; + break; // SIMCONNECT_RECV_ID_AIRPORT_LIST } case SIMCONNECT_RECV_ID_CLIENT_DATA: { @@ -334,7 +334,7 @@ namespace BlackSimPlugin DataDefinitionClientAreaSb *sbData = (DataDefinitionClientAreaSb *) &clientData->dwData; simulatorFsxP3D->updateOwnAircraftFromSimulator(*sbData); } - break; + break; // SIMCONNECT_RECV_ID_CLIENT_DATA } case SIMCONNECT_RECV_ID_EVENT_FILENAME: { @@ -344,7 +344,7 @@ namespace BlackSimPlugin case SystemEventFlightLoaded: break; default: break; } - break; + break; // SIMCONNECT_RECV_ID_EVENT_FILENAME } default: break;