summaryrefslogtreecommitdiff
path: root/build_vehicle_gui.c
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2006-12-07 14:03:55 +0000
committerDarkvater <darkvater@openttd.org>2006-12-07 14:03:55 +0000
commit6774527b3ac8b8fe1ab621144c26442fc1d27d40 (patch)
tree3d741cbc11a51fe87ca2f7133dca7751d1438e6c /build_vehicle_gui.c
parent5dc75d233ab4a0adb1c9d258c10ceeddc78491f5 (diff)
downloadopenttd-6774527b3ac8b8fe1ab621144c26442fc1d27d40.tar.xz
(svn r7418) -Codechange/Feature: Put back the 'New Vehicles' button in the vehicle list window. As
things won't fit now because of too many buttons, move 'send to depot' and 'autoreplace' to a dropdown box (and seperate 'send to depot' and 'send for servicing'). The 'New Vehicles' button shows a list of all engines you have available for that vehicle type (in case of trains all railtypes). Button is only enabled for global list.
Diffstat (limited to 'build_vehicle_gui.c')
-rw-r--r--build_vehicle_gui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/build_vehicle_gui.c b/build_vehicle_gui.c
index ad9c070dd..3f23bef4b 100644
--- a/build_vehicle_gui.c
+++ b/build_vehicle_gui.c
@@ -479,7 +479,7 @@ void ShowBuildVehicleWindow(TileIndex tile, byte type)
switch (type) {
case VEH_Aircraft: {
- byte acc_planes = GetAirport(GetStationByTile(tile)->airport_type)->acc_planes;
+ byte acc_planes = (tile == 0) ? ALL : GetAirport(GetStationByTile(tile)->airport_type)->acc_planes;
bv->filter.acc_planes = acc_planes;
break;
}