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 ) {
|
||||
nodeIsAiAircraft = 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;
|
||||
#print("found NodeName=",node," nodeIsAiAircraft=",nodeIsAiAircraft," nodeIsMpAircraft=",nodeIsMpAircraft );
|
||||
if ( !nodeIsAiAircraft and !nodeIsMpAircraft ) continue;
|
||||
#print("found NodeName=",node," nodeIsAiAircraft=",nodeIsAiAircraft," nodeIsMpAircraft=",nodeIsMpAircraft);
|
||||
if ( aimember.getNode("valid") == nil ) continue;
|
||||
if ( !nodeIsAiAircraft and !nodeIsMpAircraft) continue;
|
||||
if ( !aimember.getNode("valid").getValue() ) continue; # node is invalid
|
||||
|
||||
if( running_as_autoconnect ) {
|
||||
|
@ -1822,4 +1823,4 @@ var PointRotate3D = func (x,y,z,xr,yr,zr,alpha_deg,beta_deg,gamma_deg){
|
|||
# - dynamic ID for ai-rope-model
|
||||
#
|
||||
# Please contact D_NXKT at yahoo.de for bug-reports, suggestions, ...
|
||||
#
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue