Partial fix #1408
This commit is contained in:
parent
c7f2992904
commit
275d2dc7fa
3 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue