diff options
Diffstat (limited to 'src/server/authserver/Authentication')
-rw-r--r-- | src/server/authserver/Authentication/AuthCodes.cpp | 12 | ||||
-rwxr-xr-x | src/server/authserver/Authentication/AuthCodes.h | 2 |
2 files changed, 6 insertions, 8 deletions
diff --git a/src/server/authserver/Authentication/AuthCodes.cpp b/src/server/authserver/Authentication/AuthCodes.cpp index 812949e0823..01ead12a582 100644 --- a/src/server/authserver/Authentication/AuthCodes.cpp +++ b/src/server/authserver/Authentication/AuthCodes.cpp @@ -6,26 +6,22 @@ namespace AuthHelper bool IsPreBCAcceptedClientBuild(int build) { int accepted_versions[] = PRE_BC_ACCEPTED_CLIENT_BUILD; + for (int i = 0; accepted_versions[i]; ++i) - { if (build == accepted_versions[i]) - { return true; - } - } + return false; } bool IsPostBCAcceptedClientBuild(int build) { int accepted_versions[] = POST_BC_ACCEPTED_CLIENT_BUILD; + for (int i = 0; accepted_versions[i]; ++i) - { if (build == accepted_versions[i]) - { return true; - } - } + return false; } diff --git a/src/server/authserver/Authentication/AuthCodes.h b/src/server/authserver/Authentication/AuthCodes.h index 766210547b6..7b30bd287bd 100755 --- a/src/server/authserver/Authentication/AuthCodes.h +++ b/src/server/authserver/Authentication/AuthCodes.h @@ -74,9 +74,11 @@ enum LoginResult //3.1.3 build 9947 //3.1.3 build 10146 Chinese build //3.2.2a build 10505 +//3.3.0 build 10571 //3.3.0a build 11159 //3.3.2 build 11403 //3.3.3a build 11723 +//3.3.5a build 12340 #define POST_BC_ACCEPTED_CLIENT_BUILD {12340, 11723, 11403, 11159, 10571, 10505, 10146, 9947, 8606, 0} #define PRE_BC_ACCEPTED_CLIENT_BUILD {5875, 6005, 0} |