summaryrefslogtreecommitdiff
path: root/src/depot_gui.cpp
diff options
context:
space:
mode:
authorterkhen <terkhen@openttd.org>2010-11-18 17:49:42 +0000
committerterkhen <terkhen@openttd.org>2010-11-18 17:49:42 +0000
commitf31485a2f9e6cbbeb3f97e9a43cd89eab6d02008 (patch)
tree86efa4dee98c83492a7d7776aba57c2eadd8917c /src/depot_gui.cpp
parent2223ff92c7f9f23ced4c63a3591aa46d1c2b52b2 (diff)
downloadopenttd-f31485a2f9e6cbbeb3f97e9a43cd89eab6d02008.tar.xz
(svn r21241) -Fix: Display dragged vehicles in the correct orientation while using RTL languages.
Diffstat (limited to 'src/depot_gui.cpp')
-rw-r--r--src/depot_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/depot_gui.cpp b/src/depot_gui.cpp
index 0e4d195bc..b94452ea4 100644
--- a/src/depot_gui.cpp
+++ b/src/depot_gui.cpp
@@ -501,7 +501,7 @@ struct DepotWindow : Window {
this->sel = INVALID_VEHICLE;
TrainDepotMoveVehicle(v, sel, gdvp.head);
} 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);
this->sel = v->index;