]> git.mxchange.org Git - flightgear.git/blobdiff - src/Instrumentation/dclgps.cxx
Vivian MEAZZA:
[flightgear.git] / src / Instrumentation / dclgps.cxx
index b78806b288732646e89bd6d6da9d7cf81d9e4680..8d4cb0265347a5750c779fc465d27d223c022b83 100644 (file)
@@ -26,6 +26,8 @@
 #include "dclgps.hxx"
 
 #include <simgear/sg_inlines.h>
+#include <simgear/structure/commands.hxx>
+#include <Main/fg_props.hxx>
 #include <iostream>
 SG_USING_STD(cout);
 
@@ -930,7 +932,7 @@ void DCLGPS::OBSPressed() {
        _obsMode = !_obsMode;
        if(_obsMode) {
                if(!_activeWaypoint.id.empty()) {
-                       _obsHeading = _dtkMag;
+                       _obsHeading = static_cast<int>(_dtkMag);
                }
                // TODO - the _fromWaypoint location will change as the OBS heading changes.
                // Might need to store the OBS initiation position somewhere in case it is needed again.