depot_gui.c
branchcustombridgeheads
changeset 5642 bfa6074e2833
parent 5623 ef2a8a524a95
equal deleted inserted replaced
5641:d4d00a16ef26 5642:bfa6074e2833
   777 							STR_9003_ROAD_VEHICLE_DEPOT,
   777 							STR_9003_ROAD_VEHICLE_DEPOT,
   778 							STR_9803_SHIP_DEPOT,
   778 							STR_9803_SHIP_DEPOT,
   779 							STR_A002_AIRCRAFT_HANGAR
   779 							STR_A002_AIRCRAFT_HANGAR
   780 						};
   780 						};
   781 						TileIndex tile = w->window_number;
   781 						TileIndex tile = w->window_number;
   782 						byte vehtype = WP(w, depot_d).type - VEH_Train;
   782 						byte vehtype = WP(w, depot_d).type;
   783 
   783 
   784 						SetDParam(0, (vehtype == VEH_Aircraft) ? GetStationIndex(tile) : GetDepotByTile(tile)->town_index);
   784 						SetDParam(0, (vehtype == VEH_Aircraft) ? GetStationIndex(tile) : GetDepotByTile(tile)->town_index);
   785 						ShowQuery(
   785 						ShowQuery(
   786 							confirm_captions[vehtype],
   786 							confirm_captions[vehtype - VEH_Train],
   787 							STR_DEPOT_SELL_CONFIRMATION_TEXT,
   787 							STR_DEPOT_SELL_CONFIRMATION_TEXT,
   788 							w,
   788 							w,
   789 							DepotSellAllConfirmationCallback
   789 							DepotSellAllConfirmationCallback
   790 						);
   790 						);
   791 					}
   791 					}