summaryrefslogtreecommitdiff
path: root/src/strings.cpp
diff options
context:
space:
mode:
authorPatric Stout <truebrain@openttd.org>2021-03-09 10:58:33 +0100
committerGitHub <noreply@github.com>2021-03-09 10:58:33 +0100
commitb21ba566aeee82eb06f1b754ecc78d638dda9c56 (patch)
tree027fc6bcbaac65bf16f0b228b5e53d979fa1578d /src/strings.cpp
parent9fdc8810053e695ad1220ff1d22cc3df984156c6 (diff)
downloadopenttd-b21ba566aeee82eb06f1b754ecc78d638dda9c56.tar.xz
Codechange: remove special strings for language and resolutions (#8824)
As OpenTTD grew, we found other ways to do this, and we are no longer in need for a hack like this.
Diffstat (limited to 'src/strings.cpp')
-rw-r--r--src/strings.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/strings.cpp b/src/strings.cpp
index acebf88ee..02ca30f23 100644
--- a/src/strings.cpp
+++ b/src/strings.cpp
@@ -1678,22 +1678,6 @@ static char *GetSpecialNameString(char *buff, int ind, StringParameters *args, c
return strecpy(buff, " Transport", last);
}
- /* language name? */
- if (IsInsideMM(ind, (SPECSTR_LANGUAGE_START - 0x70E4), (SPECSTR_LANGUAGE_END - 0x70E4) + 1)) {
- int i = ind - (SPECSTR_LANGUAGE_START - 0x70E4);
- return strecpy(buff,
- &_languages[i] == _current_language ? _current_language->own_name : _languages[i].name, last);
- }
-
- /* resolution size? */
- if (IsInsideBS(ind, (SPECSTR_RESOLUTION_START - 0x70E4), _resolutions.size())) {
- int i = ind - (SPECSTR_RESOLUTION_START - 0x70E4);
- buff += seprintf(
- buff, last, "%ux%u", _resolutions[i].width, _resolutions[i].height
- );
- return buff;
- }
-
NOT_REACHED();
}