From 275d2dc7fafdb98411d72d37e0575fcdf1de6bb5 Mon Sep 17 00:00:00 2001 From: Torsten Dreyer Date: Wed, 12 Mar 2014 21:21:56 +0100 Subject: [PATCH] Partial fix #1408 --- src/Aircraft/controls.cxx | 4 ++-- src/Instrumentation/dclgps.cxx | 2 +- src/Navaids/navdb.cxx | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Aircraft/controls.cxx b/src/Aircraft/controls.cxx index 4fc9246bb..879662bc2 100644 --- a/src/Aircraft/controls.cxx +++ b/src/Aircraft/controls.cxx @@ -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; } } diff --git a/src/Instrumentation/dclgps.cxx b/src/Instrumentation/dclgps.cxx index 426f33835..c0d8d3466 100644 --- a/src/Instrumentation/dclgps.cxx +++ b/src/Instrumentation/dclgps.cxx @@ -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; diff --git a/src/Navaids/navdb.cxx b/src/Navaids/navdb.cxx index 77a82c99b..4b01c3ad6 100644 --- a/src/Navaids/navdb.cxx +++ b/src/Navaids/navdb.cxx @@ -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); } -- 2.39.5