From a43b8b00bcd9da2ee64db42cbe0ce1ae634e3af9 Mon Sep 17 00:00:00 2001 From: Mat Sutcliffe Date: Mon, 17 Aug 2020 14:35:00 +0100 Subject: [PATCH] [xswiftbus] Add labels when pushing positions to xplanemp2 --- src/xswiftbus/traffic.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/xswiftbus/traffic.cpp b/src/xswiftbus/traffic.cpp index 701d007f3..2f7163f76 100644 --- a/src/xswiftbus/traffic.cpp +++ b/src/xswiftbus/traffic.cpp @@ -49,6 +49,7 @@ namespace XSwiftBus surfaces.lights.bcnLights = surfaces.lights.landLights = surfaces.lights.navLights = surfaces.lights.strbLights = 1; std::strncpy(label, callsign.c_str(), sizeof(label)); + for (auto &position : positions) { memcpy(position.label, label, sizeof(label)); } std::srand(static_cast(std::time(nullptr))); surfaces.lights.timeOffset = static_cast(std::rand() % 0xffff);