* Get the GUI cell size for a vehicle image. * @param type Vehicle type to get the size for. * @param image_type Image type to get size for. * @pre image_type == EIT_IN_DEPOT || image_type == EIT_PURCHASE * @return Cell dimensions for the vehicle and image type. */
| 160 | * @return Cell dimensions for the vehicle and image type. |
| 161 | */ |
| 162 | VehicleCellSize GetVehicleImageCellSize(VehicleType type, EngineImageType image_type) |
| 163 | { |
| 164 | switch (image_type) { |
| 165 | case EIT_IN_DEPOT: return _base_block_sizes_depot[type]; |
| 166 | case EIT_PURCHASE: return _base_block_sizes_purchase[type]; |
| 167 | default: NOT_REACHED(); |
| 168 | } |
| 169 | } |
| 170 | |
| 171 | static void InitBlocksizeForVehicles(VehicleType type, EngineImageType image_type) |
| 172 | { |
no test coverage detected