summaryrefslogtreecommitdiff
path: root/src/string.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2013-06-24 18:39:19 +0000
committerrubidium <rubidium@openttd.org>2013-06-24 18:39:19 +0000
commit7c0f34130c5ee2292ca62ee3b1c10edeb2583d45 (patch)
treebe32879bf1836b51d90305a1d09a7efb305da800 /src/string.cpp
parent8197a3ea2a0dd597f56d8d3cce3d13d9786c26d4 (diff)
downloadopenttd-7c0f34130c5ee2292ca62ee3b1c10edeb2583d45.tar.xz
(svn r25454) -Remove/Fix/Cleanup: SETX(Y) does not work at all with other than default fonts, so get rid of it
Diffstat (limited to 'src/string.cpp')
-rw-r--r--src/string.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/string.cpp b/src/string.cpp
index 32f45ade8..7557f6d1d 100644
--- a/src/string.cpp
+++ b/src/string.cpp
@@ -248,16 +248,6 @@ void str_validate(char *str, const char *last, StringValidationSettings settings
/* Replace the undesirable character with a question mark */
str += len;
if ((settings & SVS_REPLACE_WITH_QUESTION_MARK) != 0) *dst++ = '?';
-
- /* In case of these two special cases assume that they really
- * mean SETX/SETXY and also "eat" the parameter. If this was
- * not the case the string was broken to begin with and this
- * would not break much more. */
- if (c == SCC_SETX) {
- str++;
- } else if (c == SCC_SETXY) {
- str += 2;
- }
}
}