(svn r13774) -Codechange: Add support for changing vehicle purchase list position for all vehicle types.

This commit is contained in:
peter1138 2008-07-21 14:42:25 +00:00
parent aafd8393cc
commit e6aa4e1eb1
1 changed files with 12 additions and 0 deletions

View File

@ -792,6 +792,10 @@ static bool RoadVehicleChangeInfo(uint engine, int numinfo, int prop, byte **buf
ei->base_intro = grf_load_dword(&buf);
break;
case 0x20: // Alter purchase list sort order
AlterVehicleListOrder(e->index, grf_load_byte(&buf));
break;
default:
ret = true;
break;
@ -899,6 +903,10 @@ static bool ShipVehicleChangeInfo(uint engine, int numinfo, int prop, byte **buf
ei->base_intro = grf_load_dword(&buf);
break;
case 0x1B: // Alter purchase list sort order
AlterVehicleListOrder(e->index, grf_load_byte(&buf));
break;
default:
ret = true;
break;
@ -1004,6 +1012,10 @@ static bool AircraftVehicleChangeInfo(uint engine, int numinfo, int prop, byte *
ei->base_intro = grf_load_dword(&buf);
break;
case 0x1B: // Alter purchase list sort order
AlterVehicleListOrder(e->index, grf_load_byte(&buf));
break;
default:
ret = true;
break;