mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 14:55:36 +08:00
Style
This commit is contained in:
committed by
Mat Sutcliffe
parent
ac22e1d17d
commit
b8ba7940ff
@@ -629,6 +629,8 @@ namespace BlackSimPlugin
|
||||
m_addingInProgressAircraft.insert(newRemoteAircraft.getCallsign(), now);
|
||||
const QString callsign = newRemoteAircraft.getCallsign().asString();
|
||||
CAircraftModel aircraftModel = newRemoteAircraft.getModel();
|
||||
|
||||
// some more validation
|
||||
if (aircraftModel.getCallsign() != newRemoteAircraft.getCallsign())
|
||||
{
|
||||
CLogMessage(this).warning(u"Model for '%1' has no callsign, maybe using a default model") << callsign;
|
||||
@@ -1045,8 +1047,8 @@ namespace BlackSimPlugin
|
||||
{
|
||||
wasPending = true;
|
||||
const qint64 wasStartedMs = m_addingInProgressAircraft.value(cs);
|
||||
const qint64 deltaTimeMs = QDateTime::currentMSecsSinceEpoch() - wasStartedMs;
|
||||
m_statsAddCurrentTimeMs = deltaTimeMs;
|
||||
const qint64 deltaTimeMs = QDateTime::currentMSecsSinceEpoch() - wasStartedMs;
|
||||
m_statsAddCurrentTimeMs = deltaTimeMs;
|
||||
if (deltaTimeMs > m_statsAddMaxTimeMs) { m_statsAddMaxTimeMs = deltaTimeMs; }
|
||||
m_addingInProgressAircraft.remove(cs);
|
||||
}
|
||||
|
||||
@@ -209,7 +209,7 @@ namespace BlackSimPlugin
|
||||
//! Timestamps of aircraft currently adding
|
||||
QPair<qint64, qint64> minMaxTimestampsAddInProgress() const;
|
||||
|
||||
//! Can the next aircraft be added?
|
||||
//! Can the next aircraft be added? No other aircraft adding in progress?
|
||||
bool canAddAircraft() const;
|
||||
|
||||
//! Callbacks from simulator @{
|
||||
|
||||
Reference in New Issue
Block a user