(svn r27757) -Change: Make StringID 32bit.

This commit is contained in:
frosch
2017-02-26 19:41:14 +00:00
parent a56e2bccd0
commit fc4c4d080c
5 changed files with 8 additions and 8 deletions

View File

@@ -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