mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-30 11:55:35 +08:00
Setting own aircraft did not start the udpate timer.
Hence no updates from the network were received.
This commit is contained in:
@@ -291,6 +291,12 @@ namespace BlackCore
|
||||
void CNetworkVatlib::setOwnAircraft(const BlackMisc::Aviation::CAircraft &aircraft)
|
||||
{
|
||||
m_ownAircraft = aircraft;
|
||||
|
||||
if (! m_updateTimer.isActive())
|
||||
{
|
||||
m_updateTimer.start(c_updateIntervalMsec);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void CNetworkVatlib::setOwnAircraftPosition(const BlackMisc::Geo::CCoordinateGeodetic &position, const BlackMisc::Aviation::CAltitude &altitude)
|
||||
|
||||
Reference in New Issue
Block a user