src/depot_gui.cpp
changeset 9232 0a94fea18c79
parent 9225 1158928d629a
child 9273 35e0224ea8f1
equal deleted inserted replaced
9231:45a12ad6ba49 9232:0a94fea18c79
   999 			w = AllocateWindowDescFront<DepotWindow>(&_ship_depot_desc, tile); break;
   999 			w = AllocateWindowDescFront<DepotWindow>(&_ship_depot_desc, tile); break;
  1000 		case VEH_AIRCRAFT:
  1000 		case VEH_AIRCRAFT:
  1001 			w = AllocateWindowDescFront<DepotWindow>(&_aircraft_depot_desc, tile); break;
  1001 			w = AllocateWindowDescFront<DepotWindow>(&_aircraft_depot_desc, tile); break;
  1002 	}
  1002 	}
  1003 
  1003 
       
  1004 	if (w == NULL) return;
       
  1005 
  1004 	w->caption_color = GetTileOwner(tile);
  1006 	w->caption_color = GetTileOwner(tile);
  1005 	w->CreateDepotListWindow(type);
  1007 	w->CreateDepotListWindow(type);
  1006 }
  1008 }
  1007 
  1009 
  1008 /** Removes the highlight of a vehicle in a depot window
  1010 /** Removes the highlight of a vehicle in a depot window