[9843] Restore need seelction show at loot roll.

Also some clanups including merge 2 roll type enum.
This commit is contained in:
VladimirMangos 2010-05-07 01:36:48 +04:00
parent de95b8ad5f
commit ec0141261a
6 changed files with 66 additions and 65 deletions

View file

@ -386,11 +386,14 @@ void WorldSession::HandleLootRoll( WorldPacket &recv_data )
//DEBUG_LOG("WORLD RECIEVE CMSG_LOOT_ROLL, From:%u, Numberofplayers:%u, rollType:%u", (uint32)Guid, NumberOfPlayers, rollType);
Group* group = GetPlayer()->GetGroup();
if(!group)
if (!group)
return;
if (rollType >= MAX_ROLL_FROM_CLIENT)
return;
// everything is fine, do it
group->CountRollVote(GetPlayer()->GetObjectGuid(), lootedTarget, itemSlot, rollType);
group->CountRollVote(GetPlayer()->GetObjectGuid(), lootedTarget, itemSlot, RollVote(rollType));
switch (rollType)
{