Core/Dungeon Finder: Properly expand random dungeons before adding to queue and minor cleanup

- Groups were being added to queue even with no dungeons. Client was not informed so group couldn't join queue anymore
- Some cleanup in error msgs and function order
Fixes issue 3851

--HG--
branch : trunk
This commit is contained in:
Spp
2010-09-08 13:19:05 +02:00
parent f19336e455
commit fcc8d1e4a8
3 changed files with 218 additions and 149 deletions
@@ -353,14 +353,13 @@ void WorldSession::SendLfgRoleChosen(uint64 guid, uint8 roles)
void WorldSession::SendLfgJoinResult(uint8 checkResult, uint8 checkValue)
{
if (checkResult == LFG_JOIN_PARTY_NOT_MEET_REQS) // Should never happen - its handled in Mgr
return;
sLog.outDebug("SMSG_LFG_JOIN_RESULT");
WorldPacket data(SMSG_LFG_JOIN_RESULT, 4 + 4);
data << uint32(checkResult); // Check Result
data << uint32(checkValue); // Check Value
if (checkResult == LFG_JOIN_PARTY_NOT_MEET_REQS) // Should never happen - its handled in Mgr but just in case
data << uint8(0);
SendPacket(&data);
}