diff options
author | tron <tron@openttd.org> | 2004-11-17 21:36:04 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2004-11-17 21:36:04 +0000 |
commit | 3f91aff5733b653f3fec99a42c67d875a244b6cf (patch) | |
tree | d8c50fe32614e16f6bf2c5a151b8bef96d2a5c0f | |
parent | 83ffb9c7fa2d935c23eb2d866ad8719a25516c82 (diff) | |
download | openttd-3f91aff5733b653f3fec99a42c67d875a244b6cf.tar.xz |
(svn r668) -Fix: [ 1068269 ]
- Number of passangers and mail in exclusive test offer window is swapped
- Wrong data caused by double index shift is displayed in exclusive test offer window
-rw-r--r-- | aircraft_cmd.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/aircraft_cmd.c b/aircraft_cmd.c index f4112379d..7e0f7bb4c 100644 --- a/aircraft_cmd.c +++ b/aircraft_cmd.c @@ -65,12 +65,10 @@ void DrawAircraftEngine(int x, int y, int engine, uint32 image_ormod) void DrawAircraftEngineInfo(int engine, int x, int y, int maxw) { - engine -= AIRCRAFT_ENGINES_INDEX; - SET_DPARAM32(0, ((_price.aircraft_base >> 3) * aircraft_vehinfo(engine).base_cost) >> 5); SET_DPARAM16(1, aircraft_vehinfo(engine).max_speed << 3); - SET_DPARAM16(2, aircraft_vehinfo(engine).mail_capacity); - SET_DPARAM16(3, aircraft_vehinfo(engine).passanger_capacity); + SET_DPARAM16(2, aircraft_vehinfo(engine).passanger_capacity); + SET_DPARAM16(3, aircraft_vehinfo(engine).mail_capacity); SET_DPARAM32(4, aircraft_vehinfo(engine).running_cost * _price.aircraft_running >> 8); DrawStringMultiCenter(x, y, STR_A02E_COST_MAX_SPEED_CAPACITY, maxw); |