Possible queue bug fix.

Player flags enum update.
This commit is contained in:
tomrus88 2010-01-17 22:09:10 +03:00
parent 925ea7630e
commit f7de2ce1d7
6 changed files with 45 additions and 44 deletions

View file

@ -277,16 +277,15 @@ void World::AddQueuedPlayer(WorldSession* sess)
m_QueuedPlayer.push_back (sess);
// The 1st SMSG_AUTH_RESPONSE needs to contain other info too.
WorldPacket packet (SMSG_AUTH_RESPONSE, 1 + 4 + 1 + 4 + 1);
WorldPacket packet (SMSG_AUTH_RESPONSE, 1 + 4 + 1 + 4 + 1 + 4 + 1);
packet << uint8 (AUTH_WAIT_QUEUE);
packet << uint32 (0); // BillingTimeRemaining
packet << uint8 (0); // BillingPlanFlags
packet << uint32 (0); // BillingTimeRested
packet << uint8 (sess->Expansion()); // 0 - normal, 1 - TBC, must be set in database manually for each account
packet << uint32(GetQueuePos (sess));
packet << uint32(GetQueuePos (sess)); // position in queue
packet << uint8(0); // unk 3.3.0
sess->SendPacket (&packet);
//sess->SendAuthWaitQue (GetQueuePos (sess));
}
bool World::RemoveQueuedPlayer(WorldSession* sess)