summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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;