1
0
Fork 0
flightgear/src/Scripting
Florent Rougon c28f63132f Re-add airport(), navaid() and runway() methods of flightplan-leg ghosts
These methods were removed by mistake in commit 0dbb0dff9, which broke
code that relies on them (e.g., FMSDelegate.currentWaypointChanged() in
$FG_ROOT/Nasal/route_manager.nas).

Also remove 'waypointPrototype' from NasalPositioned.cxx, since it is
not used anymore.

Note: the methods can't be easily re-enabled by means of
      'waypointPrototype', because for FPLeg ghosts, 'waypointPrototype'
      was emulated as a parent class before this commit, and thus when
      querying an FPLeg ghost for its 'airport', 'runway' or 'navaid'
      member, the corresponding data member returned by
      waypointCommonGetMember() would be found by legGhostGetMember()
      *before* parent classes are searched. This commit prevents this
      from happening by returning 'airport', 'runway' and 'navaid' as
      member functions *directly* in legGhostGetMember(), before
      waypointCommonGetMember() is queried as a fallback.

Thanks to Eric van den Berg for the bug report.
2017-12-13 11:39:05 +01:00
..
ClipboardCocoa.mm Explicit AppKit includes for Mac. 2015-04-11 21:59:29 +01:00
ClipboardFallback.cxx Basic clipboard access from Nasal. 2012-08-04 17:33:48 +02:00
ClipboardWindows.cxx Basic clipboard access from Nasal. 2012-08-04 17:33:48 +02:00
ClipboardX11.cxx Fix include and compiler warning 2012-11-04 23:03:06 +01:00
CMakeLists.txt Improved infrastructure for add-ons: C++ classes, metadata file, Nasal interface 2017-12-08 00:36:41 +01:00
nasal-props.cxx Fix crash in Nasal _setChildren 2017-09-19 08:20:08 +01:00
NasalAddons.cxx Improved infrastructure for add-ons: C++ classes, metadata file, Nasal interface 2017-12-08 00:36:41 +01:00
NasalAddons.hxx Improved infrastructure for add-ons: C++ classes, metadata file, Nasal interface 2017-12-08 00:36:41 +01:00
NasalAircraft.cxx Scripting: expose flight history as aircraft.history() 2014-05-10 10:56:09 +02:00
NasalAircraft.hxx Scripting: expose flight history as aircraft.history() 2014-05-10 10:56:09 +02:00
NasalCanvas.cxx Canvas: expose set/clearFocusElement to Nasal. 2014-08-25 21:54:20 +02:00
NasalCanvas.hxx Scripting: get rid of gcHash and use new SimGear/Nasal functions. 2013-10-15 00:58:21 +02:00
NasalClipboard.cxx Scripting: clean up a bit and user more of cppbind. 2013-12-08 19:24:45 +01:00
NasalClipboard.hxx Scripting: clean up a bit and user more of cppbind. 2013-12-08 19:24:45 +01:00
NasalCondition.cxx Fix compiler warning (naRuntimeError does not return...) 2014-06-23 00:42:17 +02:00
NasalCondition.hxx Nasal: expose SGCondition using nasal::Ghost and improved error checking. 2014-06-22 15:37:48 +02:00
NasalHTTP.cxx fgValidatePath uses SGPath 2016-07-03 23:59:40 +01:00
NasalHTTP.hxx Expose HTTP module to Nasal. 2013-10-27 19:39:22 +01:00
NasalModelData.cxx Update includes (required by simgear changes) 2014-06-04 02:58:14 +02:00
NasalModelData.hxx Keep ref_ptr in FGNasalModelData (should fix #1234) 2013-11-01 20:52:55 +01:00
NasalPositioned.cxx Re-add airport(), navaid() and runway() methods of flightplan-leg ghosts 2017-12-13 11:39:05 +01:00
NasalPositioned.hxx Reset: Nasal can be shutdown. 2013-11-12 22:47:41 +00:00
NasalPositioned_cppbind.cxx Add airport dynamics manager 2015-12-05 00:25:29 +00:00
NasalSGPath.cxx fgValidatePath uses SGPath 2016-07-03 23:59:40 +01:00
NasalSGPath.hxx Expose SGPath to Nasal 2013-12-18 10:30:19 +01:00
NasalString.cxx Nasal: update for simgear changes. 2014-07-21 00:26:54 +02:00
NasalString.hxx Scripting: get rid of gcHash and use new SimGear/Nasal functions. 2013-10-15 00:58:21 +02:00
NasalSys.cxx Improved infrastructure for add-ons: C++ classes, metadata file, Nasal interface 2017-12-08 00:36:41 +01:00
NasalSys.hxx Model relative property tree root binding. 2017-07-05 11:37:17 +02:00
NasalSys_private.hxx Synchronized FG with the removal of 'using std::*' in simgear's easyxml 2013-11-14 22:07:50 +00:00