mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(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
This commit is contained in:
parent
83ffb9c7fa
commit
3f91aff573
@ -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)
|
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_DPARAM32(0, ((_price.aircraft_base >> 3) * aircraft_vehinfo(engine).base_cost) >> 5);
|
||||||
SET_DPARAM16(1, aircraft_vehinfo(engine).max_speed << 3);
|
SET_DPARAM16(1, aircraft_vehinfo(engine).max_speed << 3);
|
||||||
SET_DPARAM16(2, aircraft_vehinfo(engine).mail_capacity);
|
SET_DPARAM16(2, aircraft_vehinfo(engine).passanger_capacity);
|
||||||
SET_DPARAM16(3, 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);
|
SET_DPARAM32(4, aircraft_vehinfo(engine).running_cost * _price.aircraft_running >> 8);
|
||||||
|
|
||||||
DrawStringMultiCenter(x, y, STR_A02E_COST_MAX_SPEED_CAPACITY, maxw);
|
DrawStringMultiCenter(x, y, STR_A02E_COST_MAX_SPEED_CAPACITY, maxw);
|
||||||
|
Loading…
Reference in New Issue
Block a user