]> git.mxchange.org Git - simgear.git/commitdiff
Allow a waypoint's target altitude to be modified in-place.
authorjmt <jmt>
Sun, 21 Feb 2010 22:05:41 +0000 (22:05 +0000)
committerTim Moore <timoore33@gmail.com>
Mon, 22 Feb 2010 08:42:28 +0000 (09:42 +0100)
simgear/route/waypoint.hxx

index 29edf7397c24e44a184c76d8bbd5da378ed1f49a..275d648e6811b822ed4941dd92d74eb1e3ebbe32 100644 (file)
@@ -130,6 +130,12 @@ public:
 
     inline const SGGeod& get_target() const { return pos; }
 
+    /**
+     *
+     */
+    inline void setTargetAltFt(double elev)
+    { pos.setElevationFt(elev); }
+
     /**
      * This value is not calculated by this class.  It is simply a
      * placeholder for the user to stash a distance value.  This is useful