Skip to content

Commit

Permalink
MSG_QUERY_NEXT_MAIL_TIME fixing my fault
Browse files Browse the repository at this point in the history
  • Loading branch information
Olion17 authored and billy1arm committed Aug 10, 2017
1 parent 769a7f9 commit 945ef1e
Showing 1 changed file with 1 addition and 49 deletions.
50 changes: 1 addition & 49 deletions src/game/WorldHandlers/MailHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -714,55 +714,7 @@ void WorldSession::HandleMailCreateTextItem(WorldPacket& recv_data)
void WorldSession::HandleQueryNextMailTime(WorldPacket& /**recv_data*/)
{
WorldPacket data(MSG_QUERY_NEXT_MAIL_TIME, 4);

data << float(0);

//if (_player->unReadMails > 0)
//{
// data << uint32(0); // float
// data << uint32(0); // count

// uint32 count = 0;
// time_t now = time(NULL);
// for (PlayerMails::iterator itr = _player->GetMailBegin(); itr != _player->GetMailEnd(); ++itr)
// {
// Mail* m = (*itr);
// // must be not checked yet
// if (m->checked & MAIL_CHECK_MASK_READ)
// { continue; }

// // and already delivered
// if (now < m->deliver_time)
// { continue; }

// data << ObjectGuid(HIGHGUID_PLAYER, m->sender); // sender guid

// switch (m->messageType)
// {
// case MAIL_AUCTION:
// data << uint32(m->sender); // auction house id
// data << uint32(MAIL_AUCTION); // message type
// break;
// default:
// data << uint32(0);
// data << uint32(0);
// break;
// }

// data << uint32(m->stationery);
// data << uint32(0xC6000000); // float unk, time or something

// ++count;
// if (count == 2) // do not display more than 2 mails
// { break; }
// }
// data.put<uint32>(4, count);
//}
//else
//{
// data << uint32(0xC7A8C000);
// data << uint32(0x00000000);
//}
data << (_player->unReadMails > 0 ? float(0) : float(-1));
SendPacket(&data);
}

Expand Down

0 comments on commit 945ef1e

Please sign in to comment.