(svn r16817) -Codechange: Scroll depots horizontally in pixels instead of 1/8 vehicle length.

This commit is contained in:
frosch
2009-07-13 19:30:37 +00:00
parent 3922860bb9
commit 3973b1e7cb
4 changed files with 26 additions and 34 deletions

View File

@@ -811,7 +811,7 @@ static void DrawSmallOrderList(const Vehicle *v, int left, int right, int y)
static void DrawVehicleImage(const Vehicle *v, int x, int y, VehicleID selection, int max_width, int skip)
{
switch (v->type) {
case VEH_TRAIN: DrawTrainImage(v, x, y, selection, max_width, skip); break;
case VEH_TRAIN: DrawTrainImage(Train::From(v), x, y, selection, max_width, skip); break;
case VEH_ROAD: DrawRoadVehImage(v, x, y, selection, max_width); break;
case VEH_SHIP: DrawShipImage(v, x, y, selection); break;
case VEH_AIRCRAFT: DrawAircraftImage(v, x, y, selection); break;