equal
deleted
inserted
replaced
36 do { |
36 do { |
37 int length = v->u.road.cached_veh_length; |
37 int length = v->u.road.cached_veh_length; |
38 |
38 |
39 if (dx + length > 0 && dx <= max_length) { |
39 if (dx + length > 0 && dx <= max_length) { |
40 SpriteID pal = (v->vehstatus & VS_CRASHED) ? PALETTE_CRASH : GetVehiclePalette(v); |
40 SpriteID pal = (v->vehstatus & VS_CRASHED) ? PALETTE_CRASH : GetVehiclePalette(v); |
41 DrawSprite(GetRoadVehImage(v, DIR_W), pal, x + 14 + RoadVehLengthToPixels(dx), y + 6); |
41 DrawSprite(v->GetImage(DIR_W), pal, x + 14 + RoadVehLengthToPixels(dx), y + 6); |
42 |
42 |
43 if (v->index == selection) { |
43 if (v->index == selection) { |
44 DrawFrameRect(x - 1, y - 1, x + 28, y + 12, 15, FR_BORDERONLY); |
44 DrawFrameRect(x - 1, y - 1, x + 28, y + 12, 15, FR_BORDERONLY); |
45 } |
45 } |
46 } |
46 } |