diff options
author | frosch <frosch@openttd.org> | 2014-06-10 16:37:25 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2014-06-10 16:37:25 +0000 |
commit | 1b0929a9f04d94d40962cf49a682f1e3f8f800fd (patch) | |
tree | c959248f6820bc4946b8eea8b2173e72478652bc /src/industry_gui.cpp | |
parent | 4d2107bd618ea56e5ee0ac1e7db1aa0b88b6551d (diff) | |
download | openttd-1b0929a9f04d94d40962cf49a682f1e3f8f800fd.tar.xz |
(svn r26640) -Cleanup: Remove some pointless STR_JUST_STRING detours.
Diffstat (limited to 'src/industry_gui.cpp')
-rw-r--r-- | src/industry_gui.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/industry_gui.cpp b/src/industry_gui.cpp index bcda8bd5c..88cb29c74 100644 --- a/src/industry_gui.cpp +++ b/src/industry_gui.cpp @@ -119,12 +119,10 @@ static int CDECL IndustryTypeNameSorter(const IndustryType *a, const IndustryTyp static char industry_name[2][64]; const IndustrySpec *indsp1 = GetIndustrySpec(*a); - SetDParam(0, indsp1->name); - GetString(industry_name[0], STR_JUST_STRING, lastof(industry_name[0])); + GetString(industry_name[0], indsp1->name, lastof(industry_name[0])); const IndustrySpec *indsp2 = GetIndustrySpec(*b); - SetDParam(0, indsp2->name); - GetString(industry_name[1], STR_JUST_STRING, lastof(industry_name[1])); + GetString(industry_name[1], indsp2->name, lastof(industry_name[1])); int r = strnatcmp(industry_name[0], industry_name[1]); // Sort by name (natural sorting). @@ -1671,8 +1669,7 @@ struct CargoesField { ypos += (normal_height - FONT_HEIGHT_NORMAL) / 2; if (this->u.industry.ind_type < NUM_INDUSTRYTYPES) { const IndustrySpec *indsp = GetIndustrySpec(this->u.industry.ind_type); - SetDParam(0, indsp->name); - DrawString(xpos, xpos2, ypos, STR_JUST_STRING, TC_WHITE, SA_HOR_CENTER); + DrawString(xpos, xpos2, ypos, indsp->name, TC_WHITE, SA_HOR_CENTER); /* Draw the industry legend. */ int blob_left, blob_right; |