src/depot_gui.cpp
changeset 8479 05ee5ae44a55
parent 8264 b1e85998c7d3
child 8585 61ac905ff5f7
equal deleted inserted replaced
8478:e6ccfefffc6d 8479:05ee5ae44a55
   517 
   517 
   518 /* Function to set up vehicle specific sprites and strings
   518 /* Function to set up vehicle specific sprites and strings
   519  * Only use this if it's the same widget, that's used for more than one vehicle type and it needs different text/sprites
   519  * Only use this if it's the same widget, that's used for more than one vehicle type and it needs different text/sprites
   520  * Vehicle specific text/sprites, that's in a widget, that's only shown for one vehicle type (like sell whole train) is set in the widget array
   520  * Vehicle specific text/sprites, that's in a widget, that's only shown for one vehicle type (like sell whole train) is set in the widget array
   521  */
   521  */
   522 static void SetupStringsForDepotWindow(Window *w, byte type)
   522 static void SetupStringsForDepotWindow(Window *w, VehicleType type)
   523 {
   523 {
   524 	switch (type) {
   524 	switch (type) {
       
   525 		default: NOT_REACHED();
       
   526 
   525 		case VEH_TRAIN:
   527 		case VEH_TRAIN:
   526 			w->widget[DEPOT_WIDGET_CAPTION].data      = STR_8800_TRAIN_DEPOT;
   528 			w->widget[DEPOT_WIDGET_CAPTION].data      = STR_8800_TRAIN_DEPOT;
   527 			w->widget[DEPOT_WIDGET_STOP_ALL].tooltips = STR_MASS_STOP_DEPOT_TRAIN_TIP;
   529 			w->widget[DEPOT_WIDGET_STOP_ALL].tooltips = STR_MASS_STOP_DEPOT_TRAIN_TIP;
   528 			w->widget[DEPOT_WIDGET_START_ALL].tooltips= STR_MASS_START_DEPOT_TRAIN_TIP;
   530 			w->widget[DEPOT_WIDGET_START_ALL].tooltips= STR_MASS_START_DEPOT_TRAIN_TIP;
   529 			w->widget[DEPOT_WIDGET_SELL].tooltips     = STR_8841_DRAG_TRAIN_VEHICLE_TO_HERE;
   531 			w->widget[DEPOT_WIDGET_SELL].tooltips     = STR_8841_DRAG_TRAIN_VEHICLE_TO_HERE;