Changeset 412:01b3f7c87ceb for src


Ignore:
Timestamp:
01/02/13 12:19:55 (12 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

The index is always stepped, not only if the capacity is correct (re #178)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/fsuipc.py

    r408 r412  
    15641564            if capacity>=1.0:
    15651565                amount = data[index] * capacity / 128.0 / 65536.0
    1566                 index += 2
    15671566
    15681567                result.append( (fuelTank, amount, capacity) if addCapacities
    15691568                               else (fuelTank, amount))
    15701569                totalFuel += amount
     1570            index += 2
    15711571
    15721572        return (result, totalFuel)
Note: See TracChangeset for help on using the changeset viewer.