Merge /u/deltaecho/flightgear_fgdata/ branch next into next
https://sourceforge.net/p/flightgear/fgdata/merge-requests/163/
This commit is contained in:
commit
53e3bac6ee
1 changed files with 5 additions and 4 deletions
|
@ -599,10 +599,11 @@ var findBestAIObject = func (){
|
||||||
if ( (var node = aimember.getName() ) != nil ) {
|
if ( (var node = aimember.getName() ) != nil ) {
|
||||||
nodeIsAiAircraft = 0;
|
nodeIsAiAircraft = 0;
|
||||||
nodeIsMpAircraft = 0;
|
nodeIsMpAircraft = 0;
|
||||||
if ( sprintf("%8s",node) == "aircraft" ) nodeIsAiAircraft = 1;
|
if ( sprintf("%8s",node) == "aircraft" or sprintf("%7s",node) == "dragger" ) nodeIsAiAircraft = 1;
|
||||||
if ( sprintf("%11s",node) == "multiplayer" ) nodeIsMpAircraft = 1;
|
if ( sprintf("%11s",node) == "multiplayer" ) nodeIsMpAircraft = 1;
|
||||||
#print("found NodeName=",node," nodeIsAiAircraft=",nodeIsAiAircraft," nodeIsMpAircraft=",nodeIsMpAircraft );
|
#print("found NodeName=",node," nodeIsAiAircraft=",nodeIsAiAircraft," nodeIsMpAircraft=",nodeIsMpAircraft);
|
||||||
if ( !nodeIsAiAircraft and !nodeIsMpAircraft ) continue;
|
if ( aimember.getNode("valid") == nil ) continue;
|
||||||
|
if ( !nodeIsAiAircraft and !nodeIsMpAircraft) continue;
|
||||||
if ( !aimember.getNode("valid").getValue() ) continue; # node is invalid
|
if ( !aimember.getNode("valid").getValue() ) continue; # node is invalid
|
||||||
|
|
||||||
if( running_as_autoconnect ) {
|
if( running_as_autoconnect ) {
|
||||||
|
|
Loading…
Reference in a new issue