mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-07 02:35:33 +08:00
Ref T379, style
This commit is contained in:
@@ -847,7 +847,7 @@ namespace BlackSimPlugin
|
||||
break;
|
||||
}
|
||||
|
||||
Q_ASSERT_X(simObject.isPendingAdded(), Q_FUNC_INFO, "already confirmed, this should be the only place");
|
||||
Q_ASSERT_X(simObject.isPendingAdded(), Q_FUNC_INFO, "Already confirmed, this should be the only place");
|
||||
simObject.setConfirmedAdded(true);
|
||||
|
||||
// P3D also has SimConnect_AIReleaseControlEx which also allows to destroy the aircraft
|
||||
@@ -1501,10 +1501,9 @@ namespace BlackSimPlugin
|
||||
{
|
||||
// problem: we try to delete an aircraft just requested to be added
|
||||
// best solution so far, call remove again with a delay
|
||||
CLogMessage(this).warning("'%1' requested to be removed, but pending added (%2) / or pending lights(%3). Object be removed again: %4")
|
||||
<< callsign.asString()
|
||||
<< boolToYesNo(pendingAdded) << boolToYesNo(stillWaitingForLights)
|
||||
<< simObject.toQString();
|
||||
CLogMessage(this).warning("'%1' requested to be removed, but pending added (%2) / or pending lights(%3). Object will be removed again: %4")
|
||||
<< callsign.asString() << boolToYesNo(pendingAdded)
|
||||
<< boolToYesNo(stillWaitingForLights) << simObject.toQString();
|
||||
simObject.setRemovedWhileAdding(true); // next time kill
|
||||
QPointer<CSimulatorFsxCommon> myself(this);
|
||||
QTimer::singleShot(2000, this, [ = ]
|
||||
|
||||
Reference in New Issue
Block a user