equal
deleted
inserted
replaced
63 y += 10; |
63 y += 10; |
64 } |
64 } |
65 |
65 |
66 static void DrawShipImage(const Vehicle *v, int x, int y, VehicleID selection) |
66 static void DrawShipImage(const Vehicle *v, int x, int y, VehicleID selection) |
67 { |
67 { |
68 DrawSprite(GetShipImage(v, 6) | GetVehiclePalette(v), x + 32, y + 10); |
68 DrawSprite(GetShipImage(v, DIR_W) | GetVehiclePalette(v), x + 32, y + 10); |
69 |
69 |
70 if (v->index == selection) { |
70 if (v->index == selection) { |
71 DrawFrameRect(x - 5, y - 1, x + 67, y + 21, 15, FR_BORDERONLY); |
71 DrawFrameRect(x - 5, y - 1, x + 67, y + 21, 15, FR_BORDERONLY); |
72 } |
72 } |
73 } |
73 } |
711 |
711 |
712 case 0: // start dragging of vehicle |
712 case 0: // start dragging of vehicle |
713 if (v != NULL) { |
713 if (v != NULL) { |
714 WP(w,traindepot_d).sel = v->index; |
714 WP(w,traindepot_d).sel = v->index; |
715 SetWindowDirty(w); |
715 SetWindowDirty(w); |
716 SetObjectToPlaceWnd(GetVehiclePalette(v) | GetShipImage(v, 6), 4, w); |
716 SetObjectToPlaceWnd(GetVehiclePalette(v) | GetShipImage(v, DIR_W), 4, w); |
717 } |
717 } |
718 break; |
718 break; |
719 |
719 |
720 case -1: // show info window |
720 case -1: // show info window |
721 ShowShipViewWindow(v); |
721 ShowShipViewWindow(v); |