Core: Added 4.3.4 opcodes from WPP, commented out some code to fix compile (switches with opcodes - duplicate case 0: labels) and fixed authentication

This commit is contained in:
Shauren
2012-07-04 18:24:05 +02:00
parent a6a556ce09
commit c95905ddbb
14 changed files with 2610 additions and 2574 deletions

View File

@@ -19,7 +19,7 @@
namespace AuthHelper
{
bool IsAcceptedBuild(int build)
bool IsAcceptedClientBuild(int build)
{
static int accepted_versions[] = TRINITYCORE_ACCEPTED_CLIENT_BUILD;
@@ -29,9 +29,4 @@ namespace AuthHelper
return false;
}
bool IsAcceptedClientBuild(int build)
{
return (IsAcceptedBuild(build));
}
};

View File

@@ -65,13 +65,12 @@ enum LoginResult
LOGIN_LOCKED_ENFORCED = 0x10,
};
#define TRINITYCORE_ACCEPTED_CLIENT_BUILD {14545, 14480, 14333, 14007, 0}
#define TRINITYCORE_ACCEPTED_CLIENT_BUILD {15595, 12340, 0} // accept one Cataclysm and one Wrath of the Lich King build
namespace AuthHelper
{
bool IsAcceptedClientBuild(int build);
bool IsAcceptedBuild(int build);
};
#endif