summaryrefslogtreecommitdiff
path: root/src/strings_type.h
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2017-02-26 19:41:14 +0000
committerfrosch <frosch@openttd.org>2017-02-26 19:41:14 +0000
commitfc4c4d080c5d95d92354cefac4a05082fc417c83 (patch)
treef0e858b503badd205f1f44657c65c5b65df77466 /src/strings_type.h
parenta56e2bccd0bbeac71e3fa4c406ae5ec5f8e578a8 (diff)
downloadopenttd-fc4c4d080c5d95d92354cefac4a05082fc417c83.tar.xz
(svn r27757) -Change: Make StringID 32bit.
Diffstat (limited to 'src/strings_type.h')
-rw-r--r--src/strings_type.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/strings_type.h b/src/strings_type.h
index 098d3f94d..f8144f79f 100644
--- a/src/strings_type.h
+++ b/src/strings_type.h
@@ -15,8 +15,8 @@
/**
* Numeric value that represents a string, independent of the selected language.
*/
-typedef uint16 StringID;
-static const StringID INVALID_STRING_ID = 0xFFFF; ///< Constant representing an invalid string
+typedef uint32 StringID;
+static const StringID INVALID_STRING_ID = 0xFFFF; ///< Constant representing an invalid string (16bit in case it is used in savegames)
static const int MAX_CHAR_LENGTH = 4; ///< Max. length of UTF-8 encoded unicode character
static const uint MAX_LANG = 0x7F; ///< Maximum number of languages supported by the game, and the NewGRF specs