1
0
Fork 0

Fix attributes for multiplayer and AI airplanes in Phi (fix #2274)

This commit is contained in:
Thomas LESNE 2020-06-24 21:58:48 +02:00 committed by James Turner
parent 7894e36e42
commit 88788dc6ab

View file

@ -163,9 +163,6 @@
var speed = 0;
var departureAirportId = "";
var arrivalAirportId = "";
if (type == "multiplayer") {
name = child.getNode("sim").getNode("model").getNode("path").getValue();
}
if (type == "carrier") {
callsign = child.getNode("sign").getValue();
name = child.getNode("name").getValue();
@ -173,8 +170,13 @@
} else {
callsign = child.getNode("callsign").getValue();
speed = velocities.getNode("true-airspeed-kt").getValue();
departureAirportId = child.getNode("departure-airport-id").getValue();
arrivalAirportId = child.getNode("arrival-airport-id").getValue();
if (type == "multiplayer") {
name = child.getNode("sim").getNode("model").getNode("path").getValue();
} else {
departureAirportId = child.getNode("departure-airport-id").getValue();
arrivalAirportId = child.getNode("arrival-airport-id").getValue();
}
}
geoJSON.features.push({