mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-06 18:25:37 +08:00
Fixed "synchronized" typos
This commit is contained in:
@@ -190,7 +190,7 @@ namespace BlackMisc
|
||||
this->m_frequency.setUnit(CFrequencyUnit::MHz());
|
||||
}
|
||||
|
||||
void CAtcStation::syncronizeControllerData(CAtcStation &otherStation)
|
||||
void CAtcStation::synchronizeControllerData(CAtcStation &otherStation)
|
||||
{
|
||||
if (this->m_controller == otherStation.getController()) { return; }
|
||||
CUser otherController = otherStation.getController();
|
||||
@@ -198,7 +198,7 @@ namespace BlackMisc
|
||||
otherStation.setController(otherController);
|
||||
}
|
||||
|
||||
void CAtcStation::syncronizeWithBookedStation(CAtcStation &bookedStation)
|
||||
void CAtcStation::synchronizeWithBookedStation(CAtcStation &bookedStation)
|
||||
{
|
||||
if (bookedStation.getCallsign() != this->getCallsign()) { return; }
|
||||
|
||||
@@ -261,7 +261,7 @@ namespace BlackMisc
|
||||
}
|
||||
|
||||
// both ways
|
||||
this->syncronizeControllerData(bookedStation);
|
||||
this->synchronizeControllerData(bookedStation);
|
||||
if (this->hasValidRelativeDistance())
|
||||
{
|
||||
bookedStation.setRelativeDistance(this->getRelativeDistance());
|
||||
|
||||
@@ -143,14 +143,14 @@ namespace BlackMisc
|
||||
//! Set position
|
||||
void setPosition(const BlackMisc::Geo::CCoordinateGeodetic &position) { this->m_position = position; }
|
||||
|
||||
//! Syncronize controller data
|
||||
//! Synchronize controller data
|
||||
//! Updates two stations (normally a booked and online ATC station) with complementary data
|
||||
void syncronizeControllerData(CAtcStation &otherStation);
|
||||
void synchronizeControllerData(CAtcStation &otherStation);
|
||||
|
||||
//! Syncronize station data
|
||||
//! Synchronize station data
|
||||
//! Updates the two stations (a booked and online ATC station) with complementary data
|
||||
//! \pre this object is the online station, the passed station the booked station
|
||||
void syncronizeWithBookedStation(CAtcStation &bookedStation);
|
||||
void synchronizeWithBookedStation(CAtcStation &bookedStation);
|
||||
|
||||
//! Get the radius of the controller's area of visibility.
|
||||
const BlackMisc::PhysicalQuantities::CLength &getRange() const { return m_range; }
|
||||
|
||||
@@ -57,7 +57,7 @@ namespace BlackMisc
|
||||
return this->findBy(Predicates::MemberValid(&CAtcStation::getController)).transform(Predicates::MemberTransform(&CAtcStation::getController));
|
||||
}
|
||||
|
||||
int CAtcStationList::syncronizeWithBookedStation(CAtcStation &bookedAtcStation)
|
||||
int CAtcStationList::synchronizeWithBookedStation(CAtcStation &bookedAtcStation)
|
||||
{
|
||||
int c = 0;
|
||||
bookedAtcStation.setOnline(false); // reset
|
||||
@@ -66,7 +66,7 @@ namespace BlackMisc
|
||||
for (auto i = this->begin(); i != this->end(); ++i)
|
||||
{
|
||||
if (i->getCallsign() != bookedAtcStation.getCallsign()) { continue; }
|
||||
i->syncronizeWithBookedStation(bookedAtcStation);
|
||||
i->synchronizeWithBookedStation(bookedAtcStation);
|
||||
c++;
|
||||
}
|
||||
|
||||
|
||||
@@ -59,10 +59,10 @@ namespace BlackMisc
|
||||
//! All controllers (with valid data)
|
||||
BlackMisc::Network::CUserList getControllers() const;
|
||||
|
||||
//! Syncronize with ATC station representing booking information.
|
||||
//! Synchronize with ATC station representing booking information.
|
||||
//! Both sides (booking, online station) will be updated.
|
||||
//! \pre Can be used only if the stored data in this list are online ATC stations
|
||||
int syncronizeWithBookedStation(CAtcStation &bookedAtcStation);
|
||||
int synchronizeWithBookedStation(CAtcStation &bookedAtcStation);
|
||||
};
|
||||
|
||||
} //namespace
|
||||
|
||||
@@ -132,7 +132,7 @@ namespace BlackMisc
|
||||
virtual void updateModels(const CAircraftModelList &models, const CSimulatorInfo &simulator) override { this->replaceOrAddCachedModels(models, simulator); }
|
||||
//! @}
|
||||
|
||||
//! Create a loader and syncronize caches
|
||||
//! Create a loader and synchronize caches
|
||||
static std::unique_ptr<IAircraftModelLoader> createModelLoader(const BlackMisc::Simulation::CSimulatorInfo &simulator);
|
||||
|
||||
public slots:
|
||||
|
||||
@@ -429,7 +429,7 @@ namespace BlackMisc
|
||||
bool m_partsSynchronized = false; //!< synchronize parts
|
||||
bool m_fastPositionUpdates = false; //!< use fast position updates
|
||||
|
||||
//! Init, which syncronizes some denormalized values
|
||||
//! Init, which synchronizes some denormalized values
|
||||
void init();
|
||||
|
||||
BLACK_METACLASS(
|
||||
|
||||
@@ -56,7 +56,7 @@ namespace BlackMisc
|
||||
return this->findBy(&CSimulatedAircraft::isVtol, vtol);
|
||||
}
|
||||
|
||||
CCallsignSet CSimulatedAircraftList::getCallsignsWithSyncronizedParts() const
|
||||
CCallsignSet CSimulatedAircraftList::getCallsignsWithSynchronizedParts() const
|
||||
{
|
||||
CCallsignSet csl;
|
||||
for (const CSimulatedAircraft &aircraft : (*this))
|
||||
|
||||
@@ -68,7 +68,7 @@ namespace BlackMisc
|
||||
CSimulatedAircraftList findByVtol(bool vtol) const;
|
||||
|
||||
//! Callsigns of aircraft with synchronized parts
|
||||
BlackMisc::Aviation::CCallsignSet getCallsignsWithSyncronizedParts() const;
|
||||
BlackMisc::Aviation::CCallsignSet getCallsignsWithSynchronizedParts() const;
|
||||
|
||||
//! Update aircraft with data from VATSIM data file
|
||||
//! \remarks The list used ("this") needs to contain the VATSIM data file objects
|
||||
|
||||
Reference in New Issue
Block a user