diff options
author | rubidium <rubidium@openttd.org> | 2010-11-13 09:56:25 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-11-13 09:56:25 +0000 |
commit | 30637a8340844abce2aab469295b4160d1f2d532 (patch) | |
tree | 9fd08dd8b612649aa6e27fa4f36ca4be3b587e97 /src/train_gui.cpp | |
parent | 43f807a9189a1dde0260f40f8553bcc8050a3e1d (diff) | |
download | openttd-30637a8340844abce2aab469295b4160d1f2d532.tar.xz |
(svn r21157) -Codechange: remove information about the text direction out of the language "list"
Diffstat (limited to 'src/train_gui.cpp')
-rw-r--r-- | src/train_gui.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/train_gui.cpp b/src/train_gui.cpp index 73bb7afa6..616b2d5c9 100644 --- a/src/train_gui.cpp +++ b/src/train_gui.cpp @@ -55,7 +55,7 @@ void CcBuildWagon(const CommandCost &result, TileIndex tile, uint32 p1, uint32 p */ static int HighlightDragPosition(int px, int max_width, VehicleID selection) { - bool rtl = _dynlang.text_dir == TD_RTL; + bool rtl = _current_text_dir == TD_RTL; assert(selection != INVALID_VEHICLE); Point offset; @@ -85,7 +85,7 @@ static int HighlightDragPosition(int px, int max_width, VehicleID selection) */ void DrawTrainImage(const Train *v, int left, int right, int y, VehicleID selection, int skip, VehicleID drag_dest) { - bool rtl = _dynlang.text_dir == TD_RTL; + bool rtl = _current_text_dir == TD_RTL; Direction dir = rtl ? DIR_E : DIR_W; DrawPixelInfo tmp_dpi, *old_dpi; @@ -335,7 +335,7 @@ void DrawTrainDetails(const Train *v, int left, int right, int y, int vscroll_po { /* draw the first 3 details tabs */ if (det_tab != TDW_TAB_TOTALS) { - bool rtl = _dynlang.text_dir == TD_RTL; + bool rtl = _current_text_dir == TD_RTL; Direction dir = rtl ? DIR_E : DIR_W; int x = rtl ? right : left; int sprite_y_offset = 4 + (FONT_HEIGHT_NORMAL - 10) / 2; |