diff options
author | Shauren <shauren.trinity@gmail.com> | 2012-07-04 18:24:05 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2012-07-04 18:24:05 +0200 |
commit | c95905ddbb22e2b5b5362b790aa851ef10d4e27e (patch) | |
tree | 669abda1d9fcea759f1240be6f96190ec81f4970 /src/server/game/Handlers/AuthHandler.cpp | |
parent | a6a556ce09facff3918a33be6b976e5ccb7e1469 (diff) |
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
Diffstat (limited to 'src/server/game/Handlers/AuthHandler.cpp')
-rwxr-xr-x | src/server/game/Handlers/AuthHandler.cpp | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/src/server/game/Handlers/AuthHandler.cpp b/src/server/game/Handlers/AuthHandler.cpp index c5dbcb4f946..4a3f8d55fdc 100755 --- a/src/server/game/Handlers/AuthHandler.cpp +++ b/src/server/game/Handlers/AuthHandler.cpp @@ -19,21 +19,26 @@ #include "WorldSession.h" #include "WorldPacket.h" -void WorldSession::SendAuthResponse(uint8 code, bool shortForm, uint32 queuePos) +void WorldSession::SendAuthResponse(uint8 code, bool queued, uint32 queuePos) { - WorldPacket packet(SMSG_AUTH_RESPONSE, 1 + 4 + 1 + 4 + 1 + (shortForm ? 0 : (4 + 1))); - packet << uint8(code); + WorldPacket packet(SMSG_AUTH_RESPONSE, 1 /*bits*/ + 4 + 1 + 4 + 1 + 4 + 1 + 1 + (queued ? 4 : 0)); + packet.WriteBit(queued); + if (queued) + packet.WriteBit(0); + + packet.WriteBit(1); // has account info + + // account info packet << uint32(0); // BillingTimeRemaining - packet << uint8(0); // BillingPlanFlags - packet << uint32(0); // BillingTimeRested packet << uint8(Expansion()); // 0 - normal, 1 - TBC, 2 - WOTLK, 3 - CATA; must be set in database manually for each account + packet << uint32(0); packet << uint8(Expansion()); // Unknown, these two show the same + packet << uint32(0); // BillingTimeRested + packet << uint8(0); // BillingPlanFlags - if (!shortForm) - { + packet << uint8(code); + if (queued) packet << uint32(queuePos); // Queue position - packet << uint8(0); // Unk 3.3.0 - } SendPacket(&packet); } |