diff options
author | peter1138 <peter1138@openttd.org> | 2008-07-21 14:42:25 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2008-07-21 14:42:25 +0000 |
commit | 97990fa9fe76601bf56e4010f3e8d599c2c929f8 (patch) | |
tree | 8eb61a6d6f209ac94e578d45dc79f66da4d3666a /src | |
parent | bd0e52011d4d31b9a5fcaef168d448c5332dc9be (diff) | |
download | openttd-97990fa9fe76601bf56e4010f3e8d599c2c929f8.tar.xz |
(svn r13774) -Codechange: Add support for changing vehicle purchase list position for all vehicle types.
Diffstat (limited to 'src')
-rw-r--r-- | src/newgrf.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
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; |