mirror of https://github.com/OpenTTD/OpenTTD
(svn r19070) -Fix [FS#3607]: the station coverage text was not RTL language aware (sbr)
parent
8f2f4ddeec
commit
29ce905bc2
|
@ -1865,8 +1865,8 @@ STR_STATION_BUILD_COVERAGE_OFF :{BLACK}Off
|
||||||
STR_STATION_BUILD_COVERAGE_ON :{BLACK}On
|
STR_STATION_BUILD_COVERAGE_ON :{BLACK}On
|
||||||
STR_STATION_BUILD_COVERAGE_AREA_OFF_TOOLTIP :{BLACK}Don't highlight coverage area of proposed site
|
STR_STATION_BUILD_COVERAGE_AREA_OFF_TOOLTIP :{BLACK}Don't highlight coverage area of proposed site
|
||||||
STR_STATION_BUILD_COVERAGE_AREA_ON_TOOLTIP :{BLACK}Highlight coverage area of proposed site
|
STR_STATION_BUILD_COVERAGE_AREA_ON_TOOLTIP :{BLACK}Highlight coverage area of proposed site
|
||||||
STR_STATION_BUILD_ACCEPTS_CARGO :{BLACK}Accepts: {GOLD}
|
STR_STATION_BUILD_ACCEPTS_CARGO :{BLACK}Accepts: {GOLD}{RAW_STRING}
|
||||||
STR_STATION_BUILD_SUPPLIES_CARGO :{BLACK}Supplies: {GOLD}
|
STR_STATION_BUILD_SUPPLIES_CARGO :{BLACK}Supplies: {GOLD}{RAW_STRING}
|
||||||
|
|
||||||
# Join station window
|
# Join station window
|
||||||
STR_JOIN_STATION_CAPTION :{WHITE}Join station
|
STR_JOIN_STATION_CAPTION :{WHITE}Join station
|
||||||
|
|
|
@ -43,7 +43,7 @@ int DrawCargoListText(uint32 cargo_mask, const Rect &r, StringID prefix)
|
||||||
{
|
{
|
||||||
bool first = true;
|
bool first = true;
|
||||||
char string[512];
|
char string[512];
|
||||||
char *b = InlineString(string, prefix);
|
char *b = string;
|
||||||
|
|
||||||
for (CargoID i = 0; i < NUM_CARGO; i++) {
|
for (CargoID i = 0; i < NUM_CARGO; i++) {
|
||||||
if (b >= lastof(string) - (1 + 2 * 4)) break; // ',' or ' ' and two calls to Utf8Encode()
|
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));
|
assert(b < endof(string));
|
||||||
|
|
||||||
SetDParamStr(0, 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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue