Ignore:
Timestamp:
07/26/16 17:27:46 (8 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
hg-Phase:
(<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
Message:

The booked flight is passed to the aircraft created.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/gui/gui.py

    r769 r798  
    982982            self._stdioStartingLine = False
    983983
    984     def connectSimulator(self, aircraftType, simulatorType):
     984    def connectSimulator(self, bookedFlight, simulatorType):
    985985        """Connect to the simulator for the first time."""
    986986        self._logger.reset()
     
    988988        self._flight = flight.Flight(self._logger, self)
    989989        self._flight.flareTimeFromFS = self.config.flareTimeFromFS
    990         self._flight.aircraftType = aircraftType
    991         self._flight.aircraft = acft.Aircraft.create(self._flight)
     990        self._flight.aircraftType = bookedFlight.aircraftType
     991        self._flight.aircraft = acft.Aircraft.create(self._flight, bookedFlight)
    992992        self._flight.aircraft._checkers.append(self)
    993993
Note: See TracChangeset for help on using the changeset viewer.