summaryrefslogtreecommitdiff
path: root/src/station_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-02-09 21:48:57 +0000
committerrubidium <rubidium@openttd.org>2010-02-09 21:48:57 +0000
commit29ce905bc2ab5641503bda22d7c80ff5760ac585 (patch)
tree0112231a69a2452027930af95d99b67544b53f4a /src/station_gui.cpp
parent8f2f4ddeecac5839f57833f790f15d96a13504af (diff)
downloadopenttd-29ce905bc2ab5641503bda22d7c80ff5760ac585.tar.xz
(svn r19070) -Fix [FS#3607]: the station coverage text was not RTL language aware (sbr)
Diffstat (limited to 'src/station_gui.cpp')
-rw-r--r--src/station_gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/station_gui.cpp b/src/station_gui.cpp
index ccbea9c0f..1741f28d1 100644
--- a/src/station_gui.cpp
+++ b/src/station_gui.cpp
@@ -43,7 +43,7 @@ int DrawCargoListText(uint32 cargo_mask, const Rect &r, StringID prefix)
{
bool first = true;
char string[512];
- char *b = InlineString(string, prefix);
+ char *b = string;
for (CargoID i = 0; i < NUM_CARGO; i++) {
if (b >= lastof(string) - (1 + 2 * 4)) break; // ',' or ' ' and two calls to Utf8Encode()
@@ -68,7 +68,7 @@ int DrawCargoListText(uint32 cargo_mask, const Rect &r, StringID prefix)
assert(b < endof(string));
SetDParamStr(0, string);
- return DrawStringMultiLine(r.left, r.right, r.top, r.bottom, STR_JUST_RAW_STRING);
+ return DrawStringMultiLine(r.left, r.right, r.top, r.bottom, prefix);
}
/**