diff options
author | frosch <frosch@openttd.org> | 2017-02-26 19:40:32 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2017-02-26 19:40:32 +0000 |
commit | f4da8ece0ce02d6fe3dac6f8adc147e8a3d095a3 (patch) | |
tree | 8a2c1ca7a961cc1df6588bd0c360ef8eb182d72a /src/strings_type.h | |
parent | 9ad09627ad03030d39bd07e28c74bf91b83a0f24 (diff) | |
download | openttd-f4da8ece0ce02d6fe3dac6f8adc147e8a3d095a3.tar.xz |
(svn r27755) -Codechange: Move TAB_SIZE to strings_type.h and use it consistently.
Diffstat (limited to 'src/strings_type.h')
-rw-r--r-- | src/strings_type.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/strings_type.h b/src/strings_type.h index c6eebd54d..780221d0a 100644 --- a/src/strings_type.h +++ b/src/strings_type.h @@ -26,6 +26,11 @@ enum TextDirection { TD_RTL, ///< Text is written right-to-left by default }; +/** Number of bits for the StringIndex within a StringTab */ +static const uint TAB_SIZE_BITS = 11; +/** Number of strings per StringTab */ +static const uint TAB_SIZE = 1 << TAB_SIZE_BITS; + /** Special string constants */ enum SpecialStrings { |