mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 21:56:43 +08:00
[xswiftbus] Remove BlackMisc dependency
There were only very few classes used from Blackmisc after the interpolator was moved to the driver. Therefore replace those few classes with a simple alternative and remove BlackMisc from xswiftbus.
This commit is contained in:
@@ -14,7 +14,6 @@
|
||||
#endif
|
||||
#include "traffic.h"
|
||||
#include "utils.h"
|
||||
#include "blackmisc/verify.h"
|
||||
#include "XPMPMultiplayer.h"
|
||||
#include "XPMPPlaneRenderer.h"
|
||||
#include <XPLM/XPLMProcessing.h>
|
||||
@@ -22,6 +21,7 @@
|
||||
#include <QDateTime>
|
||||
#include <QDebug>
|
||||
#include <QStringList>
|
||||
#include <cassert>
|
||||
#include <cstring>
|
||||
#include <cmath>
|
||||
|
||||
@@ -218,8 +218,7 @@ namespace XSwiftBus
|
||||
const QList<Plane *> planes = m_planesByCallsign.values();
|
||||
for (Plane *plane : planes)
|
||||
{
|
||||
BLACK_VERIFY_X(plane, Q_FUNC_INFO, "Missing Plane");
|
||||
if (!plane) { continue; }
|
||||
assert(plane);
|
||||
XPMPDestroyPlane(plane->id);
|
||||
delete plane;
|
||||
}
|
||||
@@ -281,9 +280,7 @@ namespace XSwiftBus
|
||||
const QList<Plane *> planes = m_planesByCallsign.values();
|
||||
for (const Plane *plane : planes)
|
||||
{
|
||||
BLACK_VERIFY_X(plane, Q_FUNC_INFO, "Missing Plane");
|
||||
if (!plane) { continue; }
|
||||
|
||||
assert(plane);
|
||||
double lat = plane->position.lat;
|
||||
double lon = plane->position.lon;
|
||||
double elevation = plane->position.elevation;
|
||||
|
||||
Reference in New Issue
Block a user