|
@@ -985,25 +985,25 @@ static void DrawSmallOrderList(const Veh
|
|
|
} while (oid != start);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Draws an image of a vehicle chain
|
|
|
* @param v Front vehicle
|
|
|
* @param left The minimum horizontal position
|
|
|
* @param right The maximum horizontal position
|
|
|
* @param y Vertical position to draw at
|
|
|
* @param selection Selected vehicle to draw a frame around
|
|
|
* @param skip Number of pixels to skip at the front (for scrolling)
|
|
|
*/
|
|
|
static void DrawVehicleImage(const Vehicle *v, int left, int right, int y, VehicleID selection, int skip)
|
|
|
void DrawVehicleImage(const Vehicle *v, int left, int right, int y, VehicleID selection, int skip)
|
|
|
{
|
|
|
switch (v->type) {
|
|
|
case VEH_TRAIN: DrawTrainImage(Train::From(v), left, right, y, selection, skip); break;
|
|
|
case VEH_ROAD: DrawRoadVehImage(v, left, right, y, selection); break;
|
|
|
case VEH_SHIP: DrawShipImage(v, left, right, y, selection); break;
|
|
|
case VEH_AIRCRAFT: DrawAircraftImage(v, left, right, y, selection); break;
|
|
|
default: NOT_REACHED();
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Get the height of a vehicle in the vehicle list GUIs.
|