forked from mirror/OpenTTD
(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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user