(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.
This commit is contained in:
Darkvater
2006-12-07 14:03:55 +00:00
parent 5dc75d233a
commit 6774527b3a
3 changed files with 97 additions and 62 deletions

View File

@@ -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;
}