diff options
author | rubidium <rubidium@openttd.org> | 2010-11-16 12:35:16 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-11-16 12:35:16 +0000 |
commit | e84c52e6620eed63ad1202a83e0a2e5a1b98fda5 (patch) | |
tree | a49279a447428ed087f4814ca938b68173df3b45 /src/newgrf_text.cpp | |
parent | b00858473c9f4908042fc85c9787c2aad263f9bd (diff) | |
download | openttd-e84c52e6620eed63ad1202a83e0a2e5a1b98fda5.tar.xz |
(svn r21207) -Codechange: replace the magic 0x00DE constant with something less magic
Diffstat (limited to 'src/newgrf_text.cpp')
-rw-r--r-- | src/newgrf_text.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/newgrf_text.cpp b/src/newgrf_text.cpp index b851546a7..5e5acfc73 100644 --- a/src/newgrf_text.cpp +++ b/src/newgrf_text.cpp @@ -21,6 +21,7 @@ #include "newgrf.h" #include "strings_func.h" #include "newgrf_storage.h" +#include "newgrf_text.h" #include "string_func.h" #include "date_type.h" #include "debug.h" @@ -232,8 +233,7 @@ char *TranslateTTDPatchCodes(uint32 grfid, uint8 language_id, const char *str, i WChar c; size_t len = Utf8Decode(&c, str); - if (c == 0x00DE) { - /* The thorn ('รพ') indicates a unicode string to TTDPatch */ + if (c == NFO_UTF8_IDENTIFIER) { unicode = true; str += len; } |