diff options
author | frosch <frosch@openttd.org> | 2017-02-26 19:41:30 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2017-02-26 19:41:30 +0000 |
commit | 2bb80d280cc39684e71be6c4c2db5bf500e10b1c (patch) | |
tree | 2e5a9bb6dbd454860fa195da5dc537009a57d572 /src/strings_type.h | |
parent | fc4c4d080c5d95d92354cefac4a05082fc417c83 (diff) | |
download | openttd-2bb80d280cc39684e71be6c4c2db5bf500e10b1c.tar.xz |
(svn r27758) -Change: Increase the maximum number of GameScript texts to 64k, and NewGRF texts to 512k.
Diffstat (limited to 'src/strings_type.h')
-rw-r--r-- | src/strings_type.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/strings_type.h b/src/strings_type.h index f8144f79f..aa3ed788c 100644 --- a/src/strings_type.h +++ b/src/strings_type.h @@ -36,12 +36,10 @@ enum StringTab { TEXT_TAB_OLD_CUSTOM = 15, TEXT_TAB_VEHICLE = 16, /* Tab 17 for regular strings */ - TEXT_TAB_GAMESCRIPT = 18, TEXT_TAB_OLD_NEWGRF = 26, - TEXT_TAB_NEWGRF1 = 28, - TEXT_TAB_NEWGRF2 = 29, - TEXT_TAB_NEWGRF3 = 30, - TEXT_TAB_END = 32 + TEXT_TAB_END = 32, ///< End of language files. + TEXT_TAB_GAMESCRIPT_START = 32, ///< Start of GameScript supplied strings. + TEXT_TAB_NEWGRF_START = 64, ///< Start of NewGRF supplied strings. }; /** Number of bits for the StringIndex within a StringTab */ @@ -49,6 +47,12 @@ static const uint TAB_SIZE_BITS = 11; /** Number of strings per StringTab */ static const uint TAB_SIZE = 1 << TAB_SIZE_BITS; +/** Number of strings for GameScripts */ +static const uint TAB_SIZE_GAMESCRIPT = TAB_SIZE * 32; + +/** Number of strings for NewGRFs */ +static const uint TAB_SIZE_NEWGRF = TAB_SIZE * 256; + /** Special string constants */ enum SpecialStrings { |