Fix attributes for multiplayer and AI airplanes in Phi (fix #2274)
This commit is contained in:
parent
7894e36e42
commit
88788dc6ab
1 changed files with 7 additions and 5 deletions
|
@ -163,9 +163,6 @@
|
||||||
var speed = 0;
|
var speed = 0;
|
||||||
var departureAirportId = "";
|
var departureAirportId = "";
|
||||||
var arrivalAirportId = "";
|
var arrivalAirportId = "";
|
||||||
if (type == "multiplayer") {
|
|
||||||
name = child.getNode("sim").getNode("model").getNode("path").getValue();
|
|
||||||
}
|
|
||||||
if (type == "carrier") {
|
if (type == "carrier") {
|
||||||
callsign = child.getNode("sign").getValue();
|
callsign = child.getNode("sign").getValue();
|
||||||
name = child.getNode("name").getValue();
|
name = child.getNode("name").getValue();
|
||||||
|
@ -173,8 +170,13 @@
|
||||||
} else {
|
} else {
|
||||||
callsign = child.getNode("callsign").getValue();
|
callsign = child.getNode("callsign").getValue();
|
||||||
speed = velocities.getNode("true-airspeed-kt").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({
|
geoJSON.features.push({
|
||||||
|
|
Loading…
Add table
Reference in a new issue