diff --git a/src/newgrf_text.cpp b/src/newgrf_text.cpp --- 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 grfi 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; }