Ignore:
Timestamp:
04/25/24 17:42:48 (3 weeks ago)
Author:
István Váradi <ivaradi@…>
Branch:
python3
hg-Phase:
(<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
Message:

Jetways are not available for aircraft with stairs (re #386).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/gates.py

    r1155 r1156  
    3939            return plane is None or \
    4040                ((self.maxSpan<0.1 or plane.wingSpan <= self.maxSpan) and
    41                  (self.maxLength<0.1 or plane.fuselageLength <= self.maxLength))
     41                 (self.maxLength<0.1 or plane.fuselageLength <= self.maxLength) and
     42                 (not plane.hasStairs or self.type!="G"))
    4243        else:
    4344            return False
Note: See TracChangeset for help on using the changeset viewer.