From e6aa4e1eb1f43f76e7fabfae7c4e9657113d78f8 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Mon, 21 Jul 2008 14:42:25 +0000 Subject: (svn r13774) -Codechange: Add support for changing vehicle purchase list position for all vehicle types. --- src/newgrf.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src') diff --git a/src/newgrf.cpp b/src/newgrf.cpp index 634fd9a7a..16ebf16b2 100644 --- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -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; -- cgit v1.2.3-70-g09d2