Core/NetworkIO: sync opcode values with wpp and removed duplicate ones

This commit is contained in:
joschiwald
2015-01-18 23:56:01 +01:00
parent 1a4b1beb14
commit fd6668d17a
30 changed files with 489 additions and 303 deletions

View File

@@ -608,17 +608,14 @@ void WorldSession::HandleQuestPushResult(WorldPacket& recvPacket)
uint8 msg;
recvPacket >> guid >> questId >> msg;
TC_LOG_DEBUG("network", "WORLD: Received MSG_QUEST_PUSH_RESULT");
TC_LOG_DEBUG("network", "WORLD: Received CMSG_QUEST_PUSH_RESULT");
if (!_player->GetDivider().IsEmpty() && _player->GetDivider() == guid)
{
Player* player = ObjectAccessor::FindPlayer(_player->GetDivider());
if (player)
{
WorldPacket data(MSG_QUEST_PUSH_RESULT, 8 + 4 + 1);
data << _player->GetGUID();
data << uint8(msg); // valid values: 0-8
player->SendDirectMessage(&data);
player->SendPushToPartyResponse(_player, msg);
_player->SetDivider(ObjectGuid::Empty);
}
}