]> git.mxchange.org Git - flightgear.git/commitdiff
Partial fix #1408
authorTorsten Dreyer <torsten@t3r.de>
Wed, 12 Mar 2014 20:21:56 +0000 (21:21 +0100)
committerTorsten Dreyer <torsten@t3r.de>
Wed, 12 Mar 2014 20:21:56 +0000 (21:21 +0100)
src/Aircraft/controls.cxx
src/Instrumentation/dclgps.cxx
src/Navaids/navdb.cxx

index 4fc9246bb8512c931bbc3b811830652437c14f47..879662bc28251afcceeaffcf8249621c25ebc0c3 100644 (file)
@@ -1713,7 +1713,7 @@ FGControls::set_ejection_seat( int which_seat, bool val )
             eject[i] = val;
         }
     } else {
-        if ( (which_seat >= 0) && (which_seat <= MAX_EJECTION_SEATS) ) {
+        if ( (which_seat >= 0) && (which_seat < MAX_EJECTION_SEATS) ) {
             if ( eseat_status[which_seat] == SEAT_SAFED ||
                 eseat_status[which_seat] == SEAT_FAIL )
             {
@@ -1734,7 +1734,7 @@ FGControls::set_eseat_status( int which_seat, int val )
             eseat_status[i] = val;
         }
     } else {
-        if ( (which_seat >=0) && (which_seat <= MAX_EJECTION_SEATS) ) {
+        if ( (which_seat >=0) && (which_seat < MAX_EJECTION_SEATS) ) {
             eseat_status[which_seat] = val;
         }
     }
index 426f33835298cb5d18c67932daeeae7825392ccf..c0d8d34664122d9f7bd816875031d2a5a5b640d7 100644 (file)
@@ -482,7 +482,7 @@ void DCLGPS::update(double dt) {
                                                        // TODO - avoid the hardwiring on nav[0]
                                                        s = "Adj Nav Crs to ";
                                                } else {
-                                                       string s = "GPS Course is ";
+                                                       s = "GPS Course is ";
                                                }
                                                double d = GetMagHeadingFromTo(_fromWaypoint.lat, _fromWaypoint.lon, _activeWaypoint.lat, _activeWaypoint.lon);
                                                while(d < 0.0) d += 360.0;
index 77a82c99b2898441583ed8262273e0bf830b135a..4b01c3ad6ff29688d9616d6c0aeceabbce191556 100644 (file)
@@ -175,7 +175,7 @@ static PositionedID readNavFromStream(std::istream& aStream,
                                arp.first, arp.second);
   }
   
-  if (range < 0.01) {
+  if (range < 1) {
     range = defaultNavRange(ident, type);
   }