equal
deleted
inserted
replaced
1206 for (;;) { |
1206 for (;;) { |
1207 if (--sel < 0 && sel >= -w->vscroll.cap) { |
1207 if (--sel < 0 && sel >= -w->vscroll.cap) { |
1208 int dx = 0; |
1208 int dx = 0; |
1209 u = v; |
1209 u = v; |
1210 do { |
1210 do { |
1211 DrawTrainImage(u, x + WagonLengthToPixels(dx), y, 1, 0, INVALID_VEHICLE); |
1211 PalSpriteID pal = (v->vehstatus & VS_CRASHED) ? PALETTE_CRASH : GetVehiclePalette(v); |
|
1212 DrawSprite(GetTrainImage(u, DIR_W) | pal, x + 14 + WagonLengthToPixels(dx), y + 6 + (is_custom_sprite(RailVehInfo(u->engine_type)->image_index) ? _traininfo_vehicle_pitch : 0)); |
1212 dx += u->u.rail.cached_veh_length; |
1213 dx += u->u.rail.cached_veh_length; |
1213 u = u->next; |
1214 u = u->next; |
1214 } while (u != NULL && IsArticulatedPart(u)); |
1215 } while (u != NULL && IsArticulatedPart(u)); |
1215 _train_details_drawer_proc[WP(w,traindetails_d).tab](v, x + WagonLengthToPixels(dx) + 2, y + 2); |
1216 _train_details_drawer_proc[WP(w,traindetails_d).tab](v, x + WagonLengthToPixels(dx) + 2, y + 2); |
1216 y += 14; |
1217 y += 14; |