mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-10 05:55:33 +08:00
* parsing homebase from user * updating to Simulation/AircraftModel * known ICAO function * renaming, style changes * convenience functions
This commit is contained in:
@@ -20,11 +20,13 @@ namespace BlackMisc
|
||||
namespace Aviation
|
||||
{
|
||||
CAircraft::CAircraft(const CCallsign &callsign, const Network::CUser &user, const CAircraftSituation &situation)
|
||||
: m_callsign(callsign), m_pilot(user), m_situation(situation), m_distanceToPlane(0, BlackMisc::PhysicalQuantities::CLengthUnit::nullUnit())
|
||||
: m_callsign(callsign), m_pilot(user), m_situation(situation)
|
||||
{
|
||||
// sync callsigns
|
||||
if (!this->m_pilot.hasValidCallsign() && !callsign.isEmpty())
|
||||
{
|
||||
this->m_pilot.setCallsign(callsign);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -201,6 +203,5 @@ namespace BlackMisc
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
} // namespace
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user