Ignore:
Timestamp:
06/28/12 17:24:45 (12 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

RPM is handled properly and the fuel tanks of Li-2 match the simulator

File:
1 edited

Legend:

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

    r228 r263  
    286286            self._fuel.set_text(fuelStr)
    287287
    288             if hasattr(aircraftState, "n1"):
     288            if aircraftState.n1 is not None:
    289289                n1Str = ""
    290290                for n1 in aircraftState.n1:
    291291                    if n1Str: n1Str += ", "
    292292                    n1Str += "%.0f" % (n1,)
    293             elif hasattr(aircraftState, "rpm"):
     293            elif aircraftState.rpm is not None:
    294294                n1Str = ""
    295295                for rpm in aircraftState.rpm:
Note: See TracChangeset for help on using the changeset viewer.