diff options
author | rubidium <rubidium@openttd.org> | 2010-11-17 18:15:27 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-11-17 18:15:27 +0000 |
commit | 418cca075f7df76b40a7e80c3227a48b356e7ca3 (patch) | |
tree | d49cdfd269b25ca77909223030913acb9392b8e6 /src/strings.cpp | |
parent | a950e9a4a8374aca1028da1ecb2effd75d1936c6 (diff) | |
download | openttd-418cca075f7df76b40a7e80c3227a48b356e7ca3.tar.xz |
(svn r21222) -Codechange: unify some string drawing and make it use the proper infrastructure for that...
Diffstat (limited to 'src/strings.cpp')
-rw-r--r-- | src/strings.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/strings.cpp b/src/strings.cpp index 63e0df95e..d9535315a 100644 --- a/src/strings.cpp +++ b/src/strings.cpp @@ -675,15 +675,7 @@ static char *FormatString(char *buff, const char *str, int64 *argv, uint casei, } default: - if (cargo_str >= 0xE000 && cargo_str < 0xF800) { - /* NewGRF strings from Action 4 use a different format here, - * of e.g. "x tonnes of coal", so process accordingly. */ - buff = GetStringWithArgs(buff, cargo_str, argv++, last); - } else { - buff = FormatCommaNumber(buff, GetInt32(&argv), last); - buff = strecpy(buff, " ", last); - buff = strecpy(buff, GetStringPtr(cargo_str), last); - } + buff = GetStringWithArgs(buff, cargo_str, argv++, last); break; } break; |