mirror of https://github.com/OpenTTD/OpenTTD
(svn r21241) -Fix: Display dragged vehicles in the correct orientation while using RTL languages.
parent
2223ff92c7
commit
f31485a2f9
|
@ -501,7 +501,7 @@ struct DepotWindow : Window {
|
||||||
this->sel = INVALID_VEHICLE;
|
this->sel = INVALID_VEHICLE;
|
||||||
TrainDepotMoveVehicle(v, sel, gdvp.head);
|
TrainDepotMoveVehicle(v, sel, gdvp.head);
|
||||||
} else if (v != NULL) {
|
} else if (v != NULL) {
|
||||||
int image = v->GetImage(DIR_W);
|
int image = v->GetImage(_current_text_dir == TD_RTL ? DIR_E : DIR_W);
|
||||||
SetObjectToPlaceWnd(image, GetVehiclePalette(v), HT_DRAG, this);
|
SetObjectToPlaceWnd(image, GetVehiclePalette(v), HT_DRAG, this);
|
||||||
|
|
||||||
this->sel = v->index;
|
this->sel = v->index;
|
||||||
|
|
|
@ -450,7 +450,8 @@ public:
|
||||||
|
|
||||||
this->vehicle_sel = v->index;
|
this->vehicle_sel = v->index;
|
||||||
|
|
||||||
SetObjectToPlaceWnd(v->GetImage(DIR_W), GetVehiclePalette(v), HT_DRAG, this);
|
int image = v->GetImage(_current_text_dir == TD_RTL ? DIR_E : DIR_W);
|
||||||
|
SetObjectToPlaceWnd(image, GetVehiclePalette(v), HT_DRAG, this);
|
||||||
_cursor.vehchain = true;
|
_cursor.vehchain = true;
|
||||||
|
|
||||||
this->SetDirty();
|
this->SetDirty();
|
||||||
|
|
Loading…
Reference in New Issue