From: jmt Date: Sun, 21 Feb 2010 22:05:41 +0000 (+0000) Subject: Allow a waypoint's target altitude to be modified in-place. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7311dae4838a2745a581bb1c347e95782ff02606;p=simgear.git Allow a waypoint's target altitude to be modified in-place. --- diff --git a/simgear/route/waypoint.hxx b/simgear/route/waypoint.hxx index 29edf739..275d648e 100644 --- a/simgear/route/waypoint.hxx +++ b/simgear/route/waypoint.hxx @@ -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