mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-17 02:45:33 +08:00
Fix sending of parts to X-Plane
This commit is contained in:
@@ -749,8 +749,6 @@ namespace BlackSimPlugin
|
|||||||
const CAircraftParts parts(result);
|
const CAircraftParts parts(result);
|
||||||
if (result.getPartsStatus().isSupportingParts() || parts.getPartsDetails() == CAircraftParts::GuessedParts)
|
if (result.getPartsStatus().isSupportingParts() || parts.getPartsDetails() == CAircraftParts::GuessedParts)
|
||||||
{
|
{
|
||||||
if(xplaneAircraft.getPartsAsSent() == parts) { continue; }
|
|
||||||
|
|
||||||
surfaceCallsign.push_back(xplaneAircraft.getCallsign().asString());
|
surfaceCallsign.push_back(xplaneAircraft.getCallsign().asString());
|
||||||
gear.push_back(parts.isGearDown() ? 1 : 0);
|
gear.push_back(parts.isGearDown() ? 1 : 0);
|
||||||
flap.push_back(parts.getFlapsPercent() / 100.0);
|
flap.push_back(parts.getFlapsPercent() / 100.0);
|
||||||
|
|||||||
Reference in New Issue
Block a user