mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-12 07:15:34 +08:00
refactor: Move OnGround information to own class
This commit is contained in:
@@ -107,7 +107,7 @@ namespace BlackMisc::Network
|
||||
{
|
||||
if (situation.getCallsign().isEmpty()) { return false; } // no callsign
|
||||
if (!situation.isOnGround()) { return false; } // nothing to adjust
|
||||
if (situation.getOnGroundDetails() != CAircraftSituation::InFromNetwork) { return false; } // not from network
|
||||
if (situation.getOnGroundInfo().getGroundDetails() != COnGroundInfo::InFromNetwork) { return false; } // not from network
|
||||
return this->addClientGndCapability(situation.getCallsign());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user