[9050] Add MAX_EXPANSION define for config option Expansion check.

This will prevent case when expansion set to high for supported client
in config and account have also too high expansion setting.
Client in like case receive too high expnasion and reject connection
because it think that have not installed expansion for connection account.

This possible for example for account case when single realmd used for
diff client versions and account have high expansion setting for most
recent client support. And in same time mamngos.conf for specific realm
have wrong Expansion value.
This commit is contained in:
VladimirMangos 2009-12-23 20:16:47 +03:00
parent 5e081196b1
commit fb21f4c16e
3 changed files with 16 additions and 3 deletions

View file

@ -2646,4 +2646,11 @@ enum PetTameFailureReason
#define EXPECTED_MANGOSD_CLIENT_BUILD {10505, 0}
// max supported expansion level in mangosd
// NOTE: not set it more that supported by targeted client version with all expansions installed
// account with expansion > client supported will rejected at connection by client
// because if client receive unsupported expansion level it think
// that it not have expansion installed and reject
#define MAX_EXPANSION 2
#endif