diff options
author | Shocker <none@none> | 2010-09-28 08:21:51 +0300 |
---|---|---|
committer | Shocker <none@none> | 2010-09-28 08:21:51 +0300 |
commit | 78803c9f09feff5213a394a84e28b8245f7e2efa (patch) | |
tree | 7e58d15fabfb5f3ebbe7364ad6424f548caacf24 /src/server/shared/Common.h | |
parent | 192e972a594afb020e6639de7cce617e7f4655ad (diff) |
Magic numbers cleanup:
- Replace many magic numbers with constants
- Use enum for vehicle flags/seat flags
- Correct structure for ItemRandomSuffixEntry
--HG--
branch : trunk
Diffstat (limited to 'src/server/shared/Common.h')
-rw-r--r-- | src/server/shared/Common.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/server/shared/Common.h b/src/server/shared/Common.h index d08ccaca86b..c6b82d22314 100644 --- a/src/server/shared/Common.h +++ b/src/server/shared/Common.h @@ -178,10 +178,13 @@ enum LocaleConstant LOCALE_ruRU = 8 }; -const uint8 MAX_LOCALE = 9; +const uint8 TOTAL_LOCALES = 9; const LocaleConstant DEFAULT_LOCALE = LOCALE_enUS; -extern char const* localeNames[MAX_LOCALE]; +#define MAX_LOCALES 8 +#define MAX_CHARACTER_TUTORIAL_VALUES 8 + +extern char const* localeNames[TOTAL_LOCALES]; LocaleConstant GetLocaleByName(const std::string& name); |