remove redundant checks (and one indentation level)
This commit is contained in:
parent
db2d4a7a68
commit
845323eadd
1 changed files with 40 additions and 44 deletions
|
@ -301,7 +301,6 @@ TACAN::search (double frequency_mhz, double longitude_rad,
|
|||
number = carrier.size();
|
||||
|
||||
SG_LOG( SG_INSTR, SG_DEBUG, "carrier " << number );
|
||||
if ( number > 0 ) { // don't do this if there are no carriers
|
||||
for ( i = 0; i < number; ++i ) {
|
||||
string str2 ( carrier[i]->getStringValue("name", ""));
|
||||
SG_LOG( SG_INSTR, SG_DEBUG, "carrier name " << str2 );
|
||||
|
@ -325,7 +324,6 @@ TACAN::search (double frequency_mhz, double longitude_rad,
|
|||
SG_LOG( SG_INSTR, SG_DEBUG, " carrier transmitter invalid " << _mobile_valid );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//try any AI tankers second
|
||||
|
||||
|
@ -339,7 +337,6 @@ TACAN::search (double frequency_mhz, double longitude_rad,
|
|||
|
||||
SG_LOG( SG_INSTR, SG_DEBUG, "tanker number " << number );
|
||||
|
||||
if ( number > 0 ) { // don't do this if there are no AI aircraft
|
||||
for ( i = 0; i < number; ++i ) {
|
||||
string str4 ( tanker[i]->getStringValue("callsign", ""));
|
||||
SG_LOG( SG_INSTR, SG_DEBUG, "tanker callsign " << str4 );
|
||||
|
@ -364,7 +361,6 @@ TACAN::search (double frequency_mhz, double longitude_rad,
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//try any mp tankers third, if we haven't found the tanker in the ai aircraft
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue