summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2008-07-21 14:42:25 +0000
committerpeter1138 <peter1138@openttd.org>2008-07-21 14:42:25 +0000
commite6aa4e1eb1f43f76e7fabfae7c4e9657113d78f8 (patch)
tree8eb61a6d6f209ac94e578d45dc79f66da4d3666a /src
parentaafd8393cc5161941ca28a5c6f6507335572794e (diff)
downloadopenttd-e6aa4e1eb1f43f76e7fabfae7c4e9657113d78f8.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.cpp12
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;