]> git.mxchange.org Git - flightgear.git/commit
Expose the route-path of leg to Nasal.
authorJames Turner <zakalawe@mac.com>
Wed, 19 Sep 2012 17:40:34 +0000 (18:40 +0100)
committerJames Turner <zakalawe@mac.com>
Wed, 19 Sep 2012 17:40:34 +0000 (18:40 +0100)
commit3cf771548577ac9018cc70edee72215dfdb9e7af
treeccf9bac7dbb410be8055ea22638a4b266f5b0955
parent029012b8b94f0719fc824f2b6afff43afe2cb9c2
Expose the route-path of leg to Nasal.

In advance of converting the Map and NavDisplay to use the canvas, expose the full route-path vector for each flight plan leg, as a vector on the leg. Use leg.path() to get this.

E.g.:

var fp = flightplan();
for (var i=0; i<fp.getPlanSize(); i += 1)
{
  var leg = fp.getWP(i);
  debug.dump(leg.path());
}
src/Scripting/NasalPositioned.cxx