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 )
{
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;
}
}
// 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;